Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B02D7475E18 for ; Wed, 6 Nov 2002 23:26:48 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 21C3F475D70 for ; Wed, 6 Nov 2002 23:26:48 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id gA74QqhR005110; Wed, 6 Nov 2002 23:26:52 -0500 (EST) To: "Stephane Charette" Cc: "pgsql-admin@postgresql.org" Subject: Re: Vacuum return codes (vacuum as db integrity check?) In-reply-to: <20021107003555.133644767CC@postgresql.org> References: <20021107003555.133644767CC@postgresql.org> Comments: In-reply-to "Stephane Charette" message dated "Wed, 06 Nov 2002 16:35:57 -0800" Date: Wed, 06 Nov 2002 23:26:52 -0500 Message-ID: <5109.1036643212@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/80 X-Sequence-Number: 6268 "Stephane Charette" 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