Re: pg_ctl promote wait

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_ctl promote wait
Дата
Msg-id 26681.1455912520@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_ctl promote wait  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Is it safe to read pg_control externally without a lock?  pg_controldata
> will just report a CRC error and proceed, and if you're not sure you can
> just run it again.  But if a promotion fails every so often because of
> concurrent pg_control writes, that would make this feature annoying.

Just retry the read till you don't get a CRC error.
        regards, tom lane



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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: checkpointer continuous flushing - V16
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_ctl promote wait