Re: pgsql: pg_ctl: Detect current standby state from pg_control

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pgsql: pg_ctl: Detect current standby state from pg_control
Дата
Msg-id 1b5f8f59-e3b4-b158-ef88-d409b413ec43@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: pgsql: pg_ctl: Detect current standby state from pg_control  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Refactor script execution state machine in pgbench.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix newly-introduced issues in pgbench.