Re: recovery.conf location - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: recovery.conf location
Date
Msg-id AANLkTi=ftkQcPqw7WuN-gH2URz_VFbYnLNTJZKbeBTky@mail.gmail.com
Whole thread Raw
In response to Re: recovery.conf location  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: recovery.conf location  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
On Mon, Sep 27, 2010 at 08:34, Fujii Masao <masao.fujii@gmail.com> wrote:
> On Mon, Sep 27, 2010 at 9:35 AM, Jaime Casanova <jaime@2ndquadrant.com> wrote:
>> Maybe i'm missing something but this would be a problem if we put a
>> trigger file and the recovery.conf gets renamed to recovery.done, no?
>> at least that would be a problem for the standbys that still need to
>> be standbys
>
> That's not problem unless more than one standbys become master at the
> same time. Since recovery.conf is read by standby only at the start unless
> it's triggered, already-started standbys can work even if recovery.conf is
> renamed to recovery.done. Though it's somewhat tricky..

Uh, what if the slave is restarted for one reason or another? That
seems like it would be really fragile..

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: recovery.conf location
Next
From: Dimitri Fontaine
Date:
Subject: Re: [COMMITTERS] pgsql: Still more tweaking of git_changelog.