From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control
Date: Mon, 26 Sep 2016 20:45:41 -0400
Message-ID: <f6f718c7-d9c6-8855-074c-ec91ddb16752@2ndquadrant.com> (raw)
In-Reply-To: <1b5f8f59-e3b4-b158-ef88-d409b413ec43@2ndquadrant.com>
References: <E1bmkJp-0007Ph-6v@gemulon.postgresql.org>
<18364.1474818887@sss.pgh.pa.us>
<CAB7nPqQfktJ5rd1g+hXhKaSaUQk3y=4eydNLG2sOw8chAvY2cw@mail.gmail.com>
<27012.1474894431@sss.pgh.pa.us>
<1b5f8f59-e3b4-b158-ef88-d409b413ec43@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 9/26/16 7:56 PM, Peter Eisentraut wrote:
> On 9/26/16 8:53 AM, Tom Lane wrote:
>> I think that it's 100% pointless for get_control_dbstate
>> to be worried about transient CRC failures. If writes to pg_control
>> aren't atomic then we have problems enormously larger than whether
>> "pg_ctl promote" throws an error or not.
>
> The new code was designed to handle that, but if we think it's not an
> issue, then we can simplify it. I'm on it.
How about this?
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Attachments:
0001-Fix-CRC-check-handling-in-get_controlfile.patch (invalid/octet-stream, 0B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us, michael.paquier@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control
In-Reply-To: <f6f718c7-d9c6-8855-074c-ec91ddb16752@2ndquadrant.com>
References: <E1bmkJp-0007Ph-6v@gemulon.postgresql.org> <18364.1474818887@sss.pgh.pa.us> <CAB7nPqQfktJ5rd1g+hXhKaSaUQk3y=4eydNLG2sOw8chAvY2cw@mail.gmail.com> <27012.1474894431@sss.pgh.pa.us> <1b5f8f59-e3b4-b158-ef88-d409b413ec43@2ndquadrant.com> <f6f718c7-d9c6-8855-074c-ec91ddb16752@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox