Re: Open 7.3 issues - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Open 7.3 issues
Date
Msg-id 8613.1029515665@sss.pgh.pa.us
Whole thread Raw
In response to Re: Open 7.3 issues  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Open 7.3 issues  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I hadn't looked at flags yet.  Thomas's concern, and I think a valid
> one, is that if we move it from contrib into the main tree, people may
> accidentally run pg_resetxlog without understanding the issues involved.

There's already an interlock to prevent you from running it against a
live installation (it won't run if it sees a postmaster lock file).
That should also prevent an accidental run against a crashed installation
(presumably a lockfile will still be there).  And if you run it against
a cleanly-shut-down installation, it's harmless because you don't need
the old xlog.

I don't think we need to be so paranoid as to insist that you saypg_resetxlog --yes-i-read-the-manual
before it will do anything.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Admin nice-to-have's
Next
From: Tom Lane
Date:
Subject: Re: where to put NO_MKTIME_BEFORE_1970?