Re: HS/SR and smart shutdown - Mailing list pgsql-hackers

From Mark Kirkwood
Subject Re: HS/SR and smart shutdown
Date
Msg-id 4B57B4E4.2090009@catalyst.net.nz
Whole thread Raw
In response to Re: HS/SR and smart shutdown  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>   
>> On Wed, Jan 20, 2010 at 8:44 PM, Josh Berkus <josh@agliodbs.com> wrote:
>>     
>>> Well, as long as streaming rep is running, you can't do a smart shutdown
>>> ... smart shutdown seems to treat the walreciever as a client
>>> connection.  At the very least, this should be in the documentation.
>>>       
>
>   
>> How hard is it to fix?
>>     
>
> I think the first question is do we *want* to fix it, or is it
> appropriate behavior?
>
> If the master shuts down, will the slaves try to fail over to become
> masters?  When the master restarts, will the slaves automatically
> reconnect?  If these questions have the wrong answers, shutting down the
> master isn't something to be done lightly, and automatically
> disconnecting slaves would be a real bad idea.
>
>     
Right - surely people who have been using pg_standby etc have discovered 
this behaviour, so documenting it is fine I would think.

regards

Mark


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: HS/SR and smart shutdown
Next
From: Takahiro Itagaki
Date:
Subject: Re: Fix auto-prepare #2