[pgsql-jp: 39421] Re: システムインデックス再構築中のエラー

Hisakazu Nakai nakai @ shinko.co.jp
2008年 6月 6日 (金) 16:52:54 JST


中井です。

以下のURLは参考になるでしょうか。
http://www.postgresql.jp/document/pg742doc/html/sql-reindex.html
システムインデックスの破損の場合は、postmasterを -P で起動する
ところがミソみたいです。
起動さえすれば、重複行を見つけて削除すればいいような気がします。
でも、普通は壊れるところではないので、データの信頼性は低いと
思います。

kouichi さんは書きました:
> 初めまして、鈴木と申します。
> 
> 
> pg_dumpでDBのバックアップをしようとしたところエラーが出てしまいました。
> エラーメッセージは紛失しましたスミマセンm(__)m
> システム系の(?)ファイルが無いだとか読めないというエラーでした。
> 
> ググったところシステムインデックスが壊れている可能性があるということだったので
> reindex database bbs force を試してみました
> ※DB名:bbs
> 
> ところがこのreindex中にエラーが発生しシステムインデックスがより壊れたようで
> DBにアクセスできなくなってしまいました。
> どうにかシステムインデックスを再構築する方法はないでしょうか?
> 
> PostgreSQLバージョン: 7.3.10-RH
> 
> reindex database bbs force 結果
> 
> NOTICE:  relation 16416 was reindexed
> NOTICE:  relation 1255 was reindexed
> NOTICE:  relation 16410 was reindexed
> NOTICE:  relation 1247 was reindexed
> NOTICE:  relation 1249 was reindexed
> NOTICE:  relation 1259 was reindexed
> NOTICE:  relation 16388 was reindexed
> NOTICE:  relation 16390 was reindexed
> NOTICE:  relation 16392 was reindexed
> NOTICE:  relation 16394 was reindexed
> NOTICE:  relation 16396 was reindexed
> NOTICE:  relation 16398 was reindexed
> NOTICE:  relation 16400 was reindexed
> NOTICE:  relation 16402 was reindexed
> NOTICE:  relation 16404 was reindexed
> NOTICE:  relation 16406 was reindexed
> NOTICE:  relation 16412 was reindexed
> NOTICE:  relation 16418 was reindexed
> NOTICE:  relation 16594 was reindexed
> NOTICE:  relation 16596 was reindexed
> NOTICE:  relation 16598 was reindexed
> NOTICE:  relation 16384 was reindexed
> NOTICE:  relation 16386 was reindexed
> ERROR:  Cannot create unique index. Table contains non-unique values
> 
> reindexを試した後にpsqでDBにアクセスしたときのエラーメッセージ
> ERROR:  _mdfd_getrelnfd: cannot open relation pg_statistic_relid_att_index: No such file or directory
> ERROR:  _mdfd_getrelnfd: cannot open relation pg_statistic_relid_att_index: No such file or directory
> 
> 


-- 
-=-=-=-=  SHINKO ELECTRIC INDUSTRIES CO., LTD.           =-=-=-=-
=-=-=-=-    Research & Development Div.                  -=-=-=-=
-=-=-=-=      Infomation Technology Research Dept.       =-=-=-=-
=-=-=-=-  Name:Hisakazu Nakai          TEL:026-263-3922  -=-=-=-=
-=-=-=-=  Mail:nakai @ shinko.co.jp      FAX:026-263-4562  =-=-=-=-



pgsql-jp メーリングリストの案内