From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephane Charette <stephanecharette@telus.net>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Vacuum return codes (vacuum as db integrity check?)
Date: Wed, 06 Nov 2002 23:26:52 -0500
Message-ID: <5109.1036643212@sss.pgh.pa.us> (raw)
In-Reply-To: <20021107003555.133644767CC@postgresql.org>
References: <20021107003555.133644767CC@postgresql.org>
"Stephane Charette" <stephanecharette@telus.net> writes:
> 1) Where is the postmaster log kept? I've looked, but I'm cannot seem
> to find it.
I'm talking about the postmaster's stderr output. Look to see what your
postmaster startup script does with stderr ... if it routes it to
/dev/null, you'll need to change the script.
> 2) Does a non-zero return value from vacuumdb necessarily mean the
> database is corrupted?
Impossible to tell without seeing the error messages.
> 5) Is vacuumdb the "right" thing to do for a database integrity check?
Not particularly. I'd consider a successful pg_dumpall run to be a more
thorough check (or at least an equally good, and quite different, one).
> 7) When power fails on a box that is running a 7.2 PostgreSQL database,
> do *you* ever find that the database is corrupt when the box comes back
> up?
IIRC, there were some problems with sequences going backwards after a
crash in 7.2. If you are on 7.2.x for x < 3, you are running a version
with serious known bugs; you should update before complaining too much
...
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, stephanecharette@telus.net
Subject: Re: Vacuum return codes (vacuum as db integrity check?)
In-Reply-To: <5109.1036643212@sss.pgh.pa.us>
References: <20021107003555.133644767CC@postgresql.org> <5109.1036643212@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