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
|
| Список | 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 по дате отправления: