From: Tom Lane <tgl@sss.pgh.pa.us>
To: Guillaume MARTIN <guillaume@eurovox.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: Vacuum failed !
Date: Fri, 23 Aug 2002 09:28:07 -0400
Message-ID: <19425.1030109287@sss.pgh.pa.us> (raw)
In-Reply-To: <001f01c24a88$702b78a0$d36944c3@net>
References: <002101c249c5$cc166580$d36944c3@net>
<18191.1030025414@sss.pgh.pa.us>
<001f01c24a88$702b78a0$d36944c3@net>
"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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, guillaume@eurovox.fr
Subject: Re: Vacuum failed !
In-Reply-To: <19425.1030109287@sss.pgh.pa.us>
References: <002101c249c5$cc166580$d36944c3@net> <18191.1030025414@sss.pgh.pa.us> <001f01c24a88$702b78a0$d36944c3@net> <19425.1030109287@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox