[pgsql-jp: 34975] Re: データーベース破損について

上野 弘太 ueno @ crosstech.co.jp
2005年 3月 7日 (月) 19:20:49 JST


上野と申します。

>  FATAL 2:  open of /usr/local/pgsql/data/pg_clog/0000 failed: No such 
>  file or directory
>  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: Succeeded.

googleで検索したら、見つけたのですが、
下記の症状と似ているように思えますが、いかがでしょうか?

http://ml.postgresql.jp/pipermail/pgsql-jp/2004-December/018142.html
http://ml.postgresql.jp/pipermail/pgsql-jp/2004-December/018143.html
http://ml.postgresql.jp/pipermail/pgsql-jp/2004-December/018144.html


上記は、pg_resetxlog を使用するようです。
http://www.postgresql.jp/document/pg732doc/reference/app-pgresetxlog.html

しかし、
> PostgreSQL(libpq) Version  7.2.1  

pg_resetxlog は、 7.2.1 では、 contrib の扱いになっているようです。
ソースから、コンパイルする必要があるかもしれません。

ちなみに、pg_resetxlog は、 7.3 から、メインソースに組み込まれたそうです。
http://osb.sra.co.jp/PostgreSQL/7.3/contrib.html



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