From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: pg_ctl: Detect current standby state from pg_control
Date: Mon, 26 Sep 2016 19:56:24 -0400
Message-ID: <1b5f8f59-e3b4-b158-ef88-d409b413ec43@2ndquadrant.com> (raw)
In-Reply-To: <27012.1474894431@sss.pgh.pa.us>
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
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.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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
Subject: Re: pgsql: pg_ctl: Detect current standby state from pg_control
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>
* 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