pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephane Charette <stephanecharette@telus.net>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Vacuum return codes (vacuum as db integrity check?)
Date: Mon, 04 Nov 2002 14:54:05 -0800
Message-ID: <20021104225403.F32A4476434@postgresql.org> (raw)

General PostgreSQL administration question:

I'm trying to use "vacuumdb" as a way to perform a database integrity
check before starting my db-enabled application.  I used to run it as
"vacuumdb foo" and if the return code was anything other than zero, I
knew the database was most likely hosed.  (At which point I would
destroy everything and reload from backup.)

Now I've made a change and I find myself using the command "vacuumdb
-f foo" to perform a full vacuum.  However, I've noticed that vacuum
full seems to return non-zero return values much more often.  (Meaning
the database is corrupt?)  Is this known?  Are the possible return
values published somewhere without having to dig through all of the
source code?

(This is PostgrSQL v7.2 compiled for Linux, running on an older kernel
2.2.x.)

BTW -- is this the "right" thing to do for a database integrity check?
Is there a better way to do this than a vacuum?

Stephane Charette




view thread (9+ messages)  latest in thread

Message-ID: <20021104225403.F32A4476434@postgresql.org>
Permalink:  ../20021104225403.F32A4476434@postgresql.org/
Also on:    postgresql.org/message-id/20021104225403.F32A4476434@postgresql.org

 · 

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: stephanecharette@telus.net
  Subject: Re: Vacuum return codes (vacuum as db integrity check?)
  In-Reply-To: <20021104225403.F32A4476434@postgresql.org>
  References: <20021104225403.F32A4476434@postgresql.org>

* 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