Re: (re)start in our init scripts seems broken

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: (re)start in our init scripts seems broken
Дата
Msg-id CAB7nPqTunrVKFTDh46QDn0Z46KAMyCwbDtw6mP5696W5tonwcQ@mail.gmail.com
обсуждение исходный текст
Ответ на (re)start in our init scripts seems broken  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Ответы Re: (re)start in our init scripts seems broken  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Jul 20, 2016 at 11:41 AM, Tomas Vondra
<tomas.vondra@2ndquadrant.com> wrote:
> Is there a reason why it's coded like this? I think we should use the pg_ctl
> instead or (at the very least) check the postmaster return code. Also,
> perhaps we should add an explicit timeout, higher than 60 seconds.

c8196c87 is one reason. Honestly, I have always found that using
pg_ctl start -w is more robust in such scripts, and it avoids
maintaining sanity checks that are duplicates of the ones in pg_ctl
after the postmaster has started. So +1 for using that. Passing the
PG_OOM_* flags is not an issue either.
-- 
Michael



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: plperl loading files
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <