Re: Vacuum failed ! - Mailing list pgsql-admin

From Tom Lane
Subject Re: Vacuum failed !
Date
Msg-id 19425.1030109287@sss.pgh.pa.us
Whole thread Raw
In response to Re: Vacuum failed !  ("Guillaume MARTIN" <guillaume@eurovox.fr>)
List pgsql-admin
"Guillaume MARTIN" <guillaume@eurovox.fr> writes:
> i tried the truncate and delete ... I had the following :

> allopass_db=# DELETE FROM pg_statistic ;
> FATAL 2:  open of /var/pgsql/data/pg_clog/0022 failed: No such file or
> directory

I was afraid that wouldn't work, but it was worth a try.

> allopass_db=# TRUNCATE pg_statistic ;
> ERROR:  TRUNCATE cannot be used on system tables. 'pg_statistic' is a system
> table

You need to do the TRUNCATE in a standalone backend with -O -P switches.
This is basically the same procedure as for REINDEXing a system table;
see the REINDEX man page for details.

            regards, tom lane

pgsql-admin by date:

Previous
From: Alex Paulusberger
Date:
Subject: 64 Bit build for Sparc
Next
From: Alex Paulusberger
Date:
Subject: Performance Problems