気まぐれSE日記

地方でエンジニアしてます

PostgreSQLでvaccumdb するとエラーで落ちる。


たとえば、なんですが


vacuumdb -a

Vacuuming template1
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
connection to server was lost
vacuumdb: vacuum template1 failed

postgresqlのログを見ると絶えず、こんなログが出続けていた。 statistics collector (統計収集)プロセスが動かないらしい。


statistics collector process (pid xxxxx) was terminated by signal 11


普通に、select はできるんだけど、vacuumするとsignal 11で終わるのね。
まか不思議。



原因がなんなのかわからないけど、再インストールした方が早そうだ..



案の定、再インストールしたら無事治りました。いったい何だったのかな...。
たしかに、readline-develのパッケージが抜けて多のでそれを入れてみたんですが
これが原因とは関係ないと思うし。