pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Guillaume MARTIN <guillaume@eurovox.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: Vacuum failed !
Date: Thu, 22 Aug 2002 10:10:14 -0400
Message-ID: <18191.1030025414@sss.pgh.pa.us> (raw)
In-Reply-To: <002101c249c5$cc166580$d36944c3@net>
References: <002101c249c5$cc166580$d36944c3@net>

"Guillaume MARTIN" <guillaume@eurovox.fr> writes:
> Today, I made a vacuum but the following error occured :

> FATAL 2:  open of /var/pgsql/data/pg_clog/0022 failed: No such file or dire=
> ctory

Hm, what PG version is this exactly?  7.2 or 7.2.1?

> In the pg_clog directory, i've got 6 files :
>     0025
>     0026
>     0027
>     0028
>     0029
>     002A

What you seem to have here is an unvacuumed reference to an old
transaction number.  If you've been vacuuming this database regularly
then I'm not sure how that could have happened.  There is a post-7.2.1
clog bug fix that could cause premature removal of clog segments, but
it could only trigger after you've had more than 2 billion transactions
which you evidently haven't.

Fortunately, the problem seems to be in pg_statistic which is surely
non-critical data.  I'd suggest a quick "DELETE FROM pg_statistic"
and then try to VACUUM pg_statistic.  (If that doesn't work, you'll
have to try "TRUNCATE pg_statistic" instead but the delete would be
safer.)  Once you can vacuum pg_statistic, a database-wide ANALYZE
will rebuild its contents.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <18191.1030025414@sss.pgh.pa.us>
Permalink:  ../18191.1030025414@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18191.1030025414@sss.pgh.pa.us

 · 

reply

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: <18191.1030025414@sss.pgh.pa.us>
  References: <002101c249c5$cc166580$d36944c3@net> <18191.1030025414@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