[pgsql-jp: 28779] Re: 空文字列を含むテーブルの\copy/pg_dump が失敗する
Tatsuo Ishii
t-ishii @ sra.co.jp
2003年 1月 26日 (日) 17:27:29 JST
石井です.
> きしだです
>
> psqlから\copyでテーブルの空の文字列(nullではなく)を含むテーブルをエクス
> ポートしようとすると、以下のようなメッセージが出て失敗してしまいます。
>
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> The connection to the server was lost. Attempting reset: WARNING: Message from PostgreSQL backend:
> The Postmaster has informed me that some other backend
> died abnormally and possibly corrupted shared memory.
> I have rolled back the current transaction and am
> going to terminate your database system connection and exit.
> Please reconnect to the database system and repeat your query.
> Failed.
> \copy: connection pointer is NULL
とりあえず手元の7.3(Vine Linux 2.6で動いている)では再現できませんでし
た.
test=# create table t1(t text);
CREATE TABLE
test=# insert into t1 values('');
INSERT 16982 1
test=# \copy t1 to /tmp/aaa;
test=#
(testデータベースのエンコーディングはUNICODE)
何か特別な要因があるかもしれないので,バックエンドが落ちたときのバック
トレースを見せていただけませんか?
--
Tatsuo Ishii
pgsql-jp メーリングリストの案内