Re: Fast promotion, loose ends - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Fast promotion, loose ends
Date
Msg-id CA+U5nMJRtoz=3zsp6n4K8e-NRJQ7nojiBuO+1tB-POonTROJDA@mail.gmail.com
Whole thread Raw
In response to Re: Fast promotion, loose ends  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Responses Re: Fast promotion, loose ends
List pgsql-hackers
On 24 April 2013 09:32, Heikki Linnakangas <hlinnakangas@vmware.com> wrote:

>> pg_ctl already checks versions, so I don't see the point.
>
>
> The point is, if you do "pgsql93/bin/pg_ctl -D $92DATADIR promote", it will
> create fast_promote file and return success. But it won't actually promote
> the server. I think that's bad.
>
> If pg_ctl already has a check against that, fine, but I don't think it does.
> Please make sure you test that before applying.

If it doesn't check, that is not the only thing that would be broken.
The original commit of pg_ctl promote would also be broken.

--Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: KONDO Mitsumasa
Date:
Subject: Failing start-up archive recovery at Standby mode in PG9.2.4
Next
From: Heikki Linnakangas
Date:
Subject: Re: Fast promotion, loose ends