A.21. リリース 6.1

リリース日: 1997-06-08

Postgresのバージョン6.1リリース用に リグレションテストが適合され、広範な変更がなされました。

3つの新しいデータ型(datetime, timespan, and circle)が 従来のPostgresの型に追加されました。 Points、boxes、paths、polygonsは全ての他のデータ型と矛盾しない、 独自の出力書式を持つようになりました。misc.outのpolygon出力は、 元とするリグレションテストの出力内容と正確さを点検するだけのものでした。

Postgresバージョン 6.1 では、遺伝的 アルゴリズムを使用する、新しくて代替的なオプティマイザが導入されました。 これらのアルゴリズムは、その問い合わせに複数の条件もしくは複数の テーブルが含まれている時に、問い合わせ結果の順序付けにランダムな振舞い処理を行います。 (オプティマイザに評価の順序付けについての選択力を付与します。) 結果の順序付けを明確にするために、複数のリグレションテストが変更され、 またそのためにオプティマイザの選択の影響を受けにくくなりました。 いくつかのリグレションテストは、本来順序付けされないデータ型( points や time intervals) 用のもので、これらの型のテストにはset geqo to 'off'コマンドや reset geqoコマンドを明示的に付与することが必要になります。

配列の指定(数値の周りの{})の解釈は、元のレグレッションテストが実行された後で 変更されたように見えます。現在の./expected/*.outファイル はこの新しい解釈を反映していますが、正確さは保障致しません。

float8のレグレションテストはいくつかのプラットホームで失敗します。 これはpow()、exp()、及び、オーバフローとアンダーフロー状態の際に使われる 割り込み機構の解釈の違いのためです。

レグレションテストは単にdiffを使用して評価をしているため、 ランダムテストの"random"の結果は、"failed" という結果になるはずです。 しかし、私のテストマシン(Linux/gcc/i686)では、"random"はランダムな 結果を生成しないようです。

A.21.1. 6.1への移行

この移行には、6.0データベースの完全なダンプと6.1へのリストアが必要です。

リリース1.*以前からの移行の場合は、COPYの出力書式がリリース1.02から改良されているため、 まず 1.09 にアップグレードして下さい。

A.21.2. 詳細な変更点一覧

Bug Fixes
---------
packet length checking in library routines
lock manager priority patch
check for under/over flow of float8(Bruce)
multi-table join fix(Vadim)
SIGPIPE crash fix(Darren)
large object fixes(Sven)
allow btree indexes to handle NULLs(Vadim)
timezone fixes(D'Arcy)
select SUM(x) can return NULL on no rows(Thomas)
internal optimizer, executor bug fixes(Vadim)
fix problem where inner loop in < or <= has no rows(Vadim)
prevent re-commuting join index clauses(Vadim)
fix join clauses for multiple tables(Vadim)
fix hash, hashjoin for arrays(Vadim)
fix btree for abstime type(Vadim)
large object fixes(Raymond)
fix buffer leak in hash indices (Vadim)
fix rtree for use in inner scan (Vadim)
fix gist for use in inner scan, cleanups (Vadim, Andrea)
avoid unnecessary local buffers allocation (Vadim, Massimo)
fix local buffers leak in transaction aborts (Vadim)
fix file manager memmory leaks, cleanups (Vadim, Massimo)
fix storage manager memmory leaks (Vadim)
fix btree duplicates handling (Vadim)
fix deleted tuples re-incarnation caused by vacuum (Vadim)
fix SELECT varchar()/char() INTO TABLE made zero-length fields(Bruce)
many psql, pg_dump, and libpq memory leaks fixed using Purify (Igor)

Enhancements
------------
attribute optimization statistics(Bruce)
much faster new btree bulk load code(Paul)
BTREE UNIQUE added to bulk load code(Vadim) 
new lock debug code(Massimo)
massive changes to libpg++(Leo)
new GEQO optimizer speeds table multi-table optimization(Martin)
new WARN message for non-unique insert into unique key(Marc)
update x=-3, no spaces, now valid(Bruce)
remove case-sensitive identifier handling(Bruce,Thomas,Dan)
debug backend now pretty-prints tree(Darren)
new Oracle character functions(Edmund)
new plaintext password functions(Dan)
no such class or insufficient privilege changed to distinct messages(Dan)
new ANSI timestamp function(Dan)
new ANSI Time and Date types (Thomas)
move large chunks of data in backend(Martin)
multi-column btree indexes(Vadim)
new SET var TO value command(Martin)
update transaction status on reads(Dan)
new locale settings for character types(Oleg)
new SEQUENCE serial number generator(Vadim)
GROUP BY function now possible(Vadim)
re-organize regression test(Thomas,Marc)
new optimizer operation weights(Vadim)
new psql \z grant/permit option(Marc)
new MONEY data type(D'Arcy,Thomas)
tcp socket communication speed improved(Vadim)
new VACUUM option for attribute statistics, and for certain columns (Vadim)
many geometric type improvements(Thomas,Keith)
additional regression tests(Thomas)
new datestyle variable(Thomas,Vadim,Martin)
more comparison operators for sorting types(Thomas)
new conversion functions(Thomas)
new more compact btree format(Vadim)
allow pg_dumpall to preserve database ownership(Bruce)
new SET GEQO=# and R_PLANS variable(Vadim)
old (!GEQO) optimizer can use right-sided plans (Vadim)
typechecking improvement in SQL parser(Bruce)
new SET, SHOW, RESET commands(Thomas,Vadim)
new \connect database USER option
new destroydb -i option (Igor)
new \dt and \di psql commands (Darren)
SELECT "\n" now escapes newline (A. Duursma)
new geometry conversion functions from old format (Thomas)

Source tree changes
-------------------
new configuration script(Marc)
readline configuration option added(Marc)
OS-specific configuration options removed(Marc)
new OS-specific template files(Marc)
no more need to edit Makefile.global(Marc)
re-arrange include files(Marc)
nextstep patches (Gregor Hoffleit)
removed WIN32-specific code(Bruce)
removed postmaster -e option, now only postgres -e option (Bruce)
merge duplicate library code in front/backends(Martin)
now works with eBones, international Kerberos(Jun)
more shared library support
c++ include file cleanup(Bruce)
warn about buggy flex(Bruce)
DG-UX, Ultrix, Irix, AIX portability fixes