Re: [COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control
Date
Msg-id CAB7nPqR9Erm1hMvE82jWLsGAVKeviUZEm-ovdaPshJvNZ3TtOw@mail.gmail.com
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: [COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
On Tue, Sep 27, 2016 at 9:55 AM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> Seems overcomplicated to me. How about returning the control file all
> the time and let the caller pfree the result? You could then use
> crc_ok in pg_ctl.c's get_control_dbstate() to do the decision-making.

In short I would just go with the attached and call it a day.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Amit Khandekar
Date:
Subject: Re: asynchronous execution
Next
From: Masahiko Sawada
Date:
Subject: Re: Transactions involving multiple postgres foreign servers