Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BCFB4475CC4 for ; Tue, 15 Oct 2002 21:21:31 -0400 (EDT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id E8B3E475C3D for ; Tue, 15 Oct 2002 21:21:29 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g9G1LQH18961; Tue, 15 Oct 2002 21:21:26 -0400 (EDT) From: Bruce Momjian Message-Id: <200210160121.g9G1LQH18961@candle.pha.pa.us> Subject: Re: newbie qs; fixing and checking databases In-Reply-To: <200210152343.g9FNhL019887@socrates.Berkeley.EDU> To: Rusty Wright Date: Tue, 15 Oct 2002 21:21:26 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/104 X-Sequence-Number: 5962 Rusty Wright wrote: > Are there commands provided with postgresql for checking the databases > and also for repairing them? I'd like to be able to run something to > check the databases before our nightly backups. We don't have checks because thing rarely break. You can do a VACUUM, which does some elementary checking. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073