Re: Patch for disaster recovery - Mailing list pgsql-patches

From Michael Fuhr
Subject Re: Patch for disaster recovery
Date
Msg-id 20050220055646.GA14778@winnie.fuhr.org
Whole thread Raw
In response to Patch for disaster recovery  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Patch for disaster recovery
List pgsql-patches
On Sat, Feb 19, 2005 at 11:56:28PM -0500, Bruce Momjian wrote:

> I have added this define to help people recover deleted tuples.
> Of course it is only to be used for disaster recovery.

Wouldn't the patch as provided require a special build of the
postmaster, useful only for disaster recovery?  What about making
the behavior configurable at run time, say via a command-line option?
The code could remain in an #ifdef block and be included or not
included at build time depending on a configure script option.
People who don't want the functionality at all could omit it from
their build (or not enable it, depending on the default), while
people who do want it could use the same postmaster for normal
operation and for recovery, the latter function requiring starting
the postmaster with a "disaster recovery mode" option.

Just brainstorming.  Thoughts?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Patch for disaster recovery
Next
From: Tom Lane
Date:
Subject: Re: Patch for disaster recovery