Re: Reliably determining whether the server came up

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Reliably determining whether the server came up
Дата
Msg-id 23939.1227037484@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Reliably determining whether the server came up  (Mischa Sandberg <mischa_sandberg@telus.net>)
Список pgsql-admin
Mischa Sandberg <mischa_sandberg@telus.net> writes:
>> You could sleep for a second or so *before* you start looking for
>> the pidfile.

> The systems are under erratic load, due to concurrent
> cpu and diskio spikes around start-up time.
> 1-2 secs is not enough to be a guarantee :-(

Well, forget pg_ctl and just start the postmaster directly, so that
your script knows its PID.  Then you could keep an eye on whether the
PID still exists.

            regards, tom lane

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

Предыдущее
От: Mischa Sandberg
Дата:
Сообщение: Re: Reliably determining whether the server came up
Следующее
От: Arctic Toucan
Дата:
Сообщение: Re: Is it safe to reset relfrozenxid without using vacuum?