From: Tom Lane <tgl@sss.pgh.pa.us>
To: hjeancha@freesurf.fr
Cc: pgsql-admin@postgresql.org
Subject: Re: vacuumdb not enough stack items
Date: Sat, 21 Jun 2008 12:37:16 -0400
Message-ID: <19830.1214066236@sss.pgh.pa.us> (raw)
In-Reply-To: <20080621154752.33867bg7xhmsv04c@webmail-html.freesurf.fr>
References: <20080621154752.33867bg7xhmsv04c@webmail-html.freesurf.fr>
hjeancha@freesurf.fr writes:
> i use postgresql version7.4.7 on i386-pc-linux-gnu, autovacuum is
> configured to run on this database.
Hmm ... in theory autovacuum should have kept you out of trouble,
if it was working properly. Were you keeping an eye on its log
output?
> Doing a manual vacuumdb on each database raise an error message saying:
> vacuumdb: vacuuming of database "ez_info1" failed: ERREUR: not enough
> stack items
What probably happened was that this error blocked autovacuum from
completing an anti-wraparound vacuum :-(
[ checks code... ] This appears to indicate a corrupted btree index.
I don't believe we've ever heard of this error occurring in the field
before, so it might be interesting to inquire into exactly what happened
to the index --- but if you just want to get out of trouble I'd suggest
* VACUUM VERBOSE as superuser.
Watch the output to determine which table it fails on.
* REINDEX that table.
* VACUUM VERBOSE again.
This should solve the problem fairly painlessly as long as the
corrupted index isn't on a system catalog. If it is, see the
man page for REINDEX about how to recover.
I'm not sure if vacuuming will get your data back at this point,
but it's certainly worth a try.
Somewhere in here you should think about moving to a more modern
Postgres release. 8.1 and later wouldn't have let you keep going
to the point of wraparound with a critical problem like this.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, hjeancha@freesurf.fr
Subject: Re: vacuumdb not enough stack items
In-Reply-To: <19830.1214066236@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