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

From Peter Eisentraut
Subject Re: [COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control
Date
Msg-id b4750367-afa0-03c6-3888-3b316618b8c0@2ndquadrant.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>)
List pgsql-hackers
On 9/28/16 12:44 AM, Michael Paquier wrote:
> 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.

Pushed that way.  Thanks!

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: compiler warning read_objtype_from_string()
Next
From: Robert Haas
Date:
Subject: Re: Issue with bgworker, SPI and pgstat_report_stat