pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Noah Silverman <noah@allresearch.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Crash Recovery
Date: Fri, 24 Jan 2003 01:29:35 -0500
Message-ID: <10919.1043389775@sss.pgh.pa.us> (raw)
In-Reply-To: <2147483647.1043361178@[10.0.1.133]>
References: <2147483647.1043361178@[10.0.1.133]>

Noah Silverman <noah@allresearch.com> writes:
> I'm curious about where I can find documentation about crash recovery in 
> postgres.  In mysql, there is a nice table recovery utility (myisamchk). 
> is there something similar in postgres?

There are no automated recovery tools for Postgres, because there are
no known failure modes that are systematic enough to allow automatic
recovery.  We prefer to fix such bugs rather than patch around them.

There are some last-ditch tools for reconstructing indexes (REINDEX)
and for throwing away the WAL log (pg_resetxlog) but I have not seen
any recent cases where I would have felt that blind invocation of either
would be a good move.

> What do we do if a table or 
> database becomes corrupted? (I'm aware of backup techniques, but it isn't 
> feasible for some of our larger tables.

Reconsider that.  If your data center burns down tonight, what is your
fallback?  Ultimately, you *must* have a backup copy, or you're just not
taking the possibility of failure seriously.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <10919.1043389775@sss.pgh.pa.us>
Permalink:  ../10919.1043389775@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10919.1043389775@sss.pgh.pa.us

 · 

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-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, noah@allresearch.com
  Subject: Re: Crash Recovery
  In-Reply-To: <10919.1043389775@sss.pgh.pa.us>
  References: <2147483647.1043361178@[10.0.1.133]> <10919.1043389775@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