[pgsql-jp: 36782] Relation 0 does not exist のメッセージ出力でデータベースにアクセスできない
Yasuhiro Furuse
yfuruse @ kobeoffshore.com
2006年 2月 27日 (月) 22:05:45 JST
はじめまして。古瀬と申します。
下記のSQLコマンドを発行した際、'Relation 0 does not exist 'というエラーメッ
セージが表示され
それ以降、一切データベースにアクセスすることができなくなりました。
もちろん、0というテーブルは存在しておりません。
[SQL コマンド]
INSERT INTO [テーブル] SELECT * FROM [ビュー] ;
(ビューで取得した全件レコードをテーブルに落とし込む処理で件数は20000件程度で
す)
その際のログ情報を確認してみたところ、以下のようなメッセージが出力されており
ました。
[上記SQLを2:30に発行]
Feb 25 02:30:01 postgres[736]: [1] DEBUG: server process (pid 32278) was
terminated by signal 11
Feb 25 02:30:01 postgres[736]: [2] DEBUG: terminating any other active
server processes
Feb 25 02:30:01 postgres[736]: [3] DEBUG: all server processes terminated;
reinitializing shared memory and semaphores
Feb 25 02:30:01 postgres[32289]: [4] DEBUG: database system was
interrupted at 2006-02-25 01:52:52 JST
Feb 25 02:30:01 postgres[32289]: [5] DEBUG: checkpoint record is at
1/1DE7CE8C
Feb 25 02:30:01 postgres[32289]: [6] DEBUG: redo record is at 1/1DE7CE8C;
undo record is at 0/0; shutdown FALSE
Feb 25 02:30:01 postgres[32289]: [7] DEBUG: next transaction id: 6670787;
next oid: 117726
Feb 25 02:30:01 postgres[32289]: [8] DEBUG: database system was not
properly shut down; automatic recovery in progress
Feb 25 02:30:01 postgres[32289]: [9] DEBUG: ReadRecord: record with zero
length at 1/1DE7CECC
Feb 25 02:30:01 postgres[32289]: [10] DEBUG: redo is not required
Feb 25 02:30:11 postgres[32289]: [11] DEBUG: database system is ready
[異なるSQLを3:00に発行したが動作せず....]
Feb 25 03:00:00 postgres[1006]: [4] ERROR: cannot open segment 1 of
relation pg_statistic_relid_att_index (target block 858666545): No such file
or directory
Feb 25 03:30:00 postgres[2452]: [4] ERROR: cannot open segment 1 of
relation pg_statistic_relid_att_index (target block 858666545): No such file
or directory
Feb 25 04:00:00 postgres[3896]: [4] ERROR: cannot open segment 1 of
relation pg_statistic_relid_att_index (target block 858666545): No such file
or directory
なぜこのような症状がでてしまったのか、知見等お持ちの方はおられませんでしょう
か?
ちなみに、システムを再起動することにより、データベースへのアクセスは問題なく
できるようになりました。(現在利用中の環境であることより、上記SQLは試してお
りません)
環境は
PostgreSQL 7.2.4
TurboLinux8Server
です。どうぞよろしくお願いいたします。
pgsql-jp メーリングリストの案内