Re: Vacuum failed !

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Guillaume MARTIN" <guillaume(at)eurovox(dot)fr>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Vacuum failed !
Date: 2002-08-23 13:28:07
Message-ID: 19425.1030109287@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Guillaume MARTIN" <guillaume(at)eurovox(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Alex Paulusberger 2002-08-23 13:31:50 Performance Problems
Previous Message Alex Paulusberger 2002-08-23 13:11:21 64 Bit build for Sparc