Re: pg_ctl promote wait

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pg_ctl promote wait
Дата
Msg-id e2d97307-327c-dcf7-a692-30a41b0aa20e@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: pg_ctl promote wait  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: pg_ctl promote wait  (Masahiko Sawada <sawada.mshk@gmail.com>)
Список pgsql-hackers
On 8/11/16 9:28 AM, Michael Paquier wrote:
> I have looked at them and the changes are looking fine for me. So I
> have switched the patch as ready for committer, aka you.
> 
> Just a nit:
> +       if (wait_seconds > 0)
> +       {
> +           sleep(1);
> +           wait_seconds--;
> +           continue;
> +       }
> This may be better this pg_usleep() instead of sleep().

Committed with that adjustment.

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



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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: New SQL counter statistics view (pg_stat_sql)
Следующее
От: Oskari Saarenmaa
Дата:
Сообщение: Re: Hash Indexes