Re: [COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control
Дата
Msg-id b4750367-afa0-03c6-3888-3b316618b8c0@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: pg_ctl: Detect current standby state from pg_control  (Michael Paquier <michael.paquier@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: compiler warning read_objtype_from_string()
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Issue with bgworker, SPI and pgstat_report_stat