Re: Vacuum return codes (vacuum as db integrity check?)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Stephane Charette" <stephanecharette(at)telus(dot)net>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Vacuum return codes (vacuum as db integrity check?)
Date: 2002-11-07 04:26:52
Message-ID: 5109.1036643212@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Stephane Charette" <stephanecharette(at)telus(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Prime Ho 2002-11-07 06:14:57 how could I get the source table name and field name from a view field
Previous Message Stephane Charette 2002-11-07 00:35:57 Re: Vacuum return codes (vacuum as db integrity check?)