1.02.1 用の新しい移行用ファイルがあります。 そこには 'copy' の変更と古いアスキーファイルを変換するためのスクリプ トが含まれます。
Note: 以下のメモは、postgres95 1.01 と 1.02 から postgres95 1.02.1 へデー タベースの移行を行なうユーザのためのものです。
postgres95 1.02.1 から新たに開始する、または、古いデータベースの移 行を必要としない場合、以降を読む必要はありません。
postgres95 version 1.01 もしくは 1.02 データベースより以前のバージョ ンから 1.02.1 にアップグレードするためには、以下のステップが必要です。
新しい 1.02.1 の postmaster を起動します。
1.02.1 の新しい組み込み関数、演算子を 1.01 もしくは 1.02 データベースに 追加します。 新しい 1.02.1 サーバを 既存の 1.01 もしくは 1.02 データベースに対して実 行し、このファイルの最後にある問い合わせを適用することで、これを行ないま す。 psql を使用した方が簡単に実行できます。1.01 もしくは 1.02 データベース が "testdb" という名前であり、このファイルの終りのコマンドを取り出して、 addfunc.sql という名前で保存していた場合、
% psql testdb -f addfunc.sqlこれにより 1.02 のデータベースをアップグレードする場合、このファイル の最後の 2 文を実行する時に警告が現れます。 1.02 には既にこの 2 つが存在するためです。 これについては心配しなくてかまいません。
以前のバージョンの pg_dump もしくはテキストモードで 'copy tablename to stdout' を行なったものをリロードする場合、データベ ースへのロードを行なう前に、添付した sed スクリプトをその ASCII ファイ ルに対して実行しなければなりません。 データの終端の印として古い書式では '.' を、新しい書式では '\.' を使用 しています。 また、空文字列は NULL ではなく '' としてロードされるようになりました。 詳細については copy マニュアルページを参照して下さい。
sed 's/^\.$/\\./g' <in_file >out_file
古いバイナリ形式のコピーもしくは標準出力を使用しないコピーをロードする 場合は、データ終端文字がありませんので、変換は必要ありません。
-- following lines added by agc to reflect the case-insensitive -- regexp searching for varchar (in 1.02), and bpchar (in 1.02.1) create operator ~* (leftarg = bpchar, rightarg = text, procedure = texticregexeq); create operator !~* (leftarg = bpchar, rightarg = text, procedure = texticregexne); create operator ~* (leftarg = varchar, rightarg = text, procedure = texticregexeq); create operator !~* (leftarg = varchar, rightarg = text, procedure = texticregexne);
Source code maintenance and development * worldwide team of volunteers * the source tree now in CVS at ftp.ki.net Enhancements * psql (and underlying libpq library) now has many more options for formatting output, including HTML * pg_dump now output the schema and/or the data, with many fixes to enhance completeness. * psql used in place of monitor in administration shell scripts. monitor to be depreciated in next release. * date/time functions enhanced * NULL insert/update/comparison fixed/enhanced * TCL/TK lib and shell fixed to work with both tck7.4/tk4.0 and tcl7.5/tk4.1 Bug Fixes (almost too numerous to mention) * indexes * storage management * check for NULL pointer before dereferencing * Makefile fixes New Ports * added SolarisX86 port * added BSDI 2.1 port * added DGUX port