Re: Latches, loop and exit

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Latches, loop and exit
Дата
Msg-id 1284534537.1952.4789.camel@ebony
обсуждение исходный текст
Ответ на Re: Latches, loop and exit  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-hackers
On Wed, 2010-09-15 at 09:40 +0300, Heikki Linnakangas wrote:
> > However, if the following clause is ever invoked, then the loop does
> > have problems and we leave when not caught up.
> >
> > if (!PostmasterIsAlive(true))
> >     exit(1);
> 
> As the comment above that says, that's just an escape hatch if 
> postmaster dies unexpectedly for any reason. It won't happen in a normal 
> shutdown.

Thanks for clarifying. I wanted to copy the logic, so just checking.

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Development, 24x7 Support, Training and Services



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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: patch: SQL/MED(FDW) DDL
Следующее
От: Tomáš Kovářík
Дата:
Сообщение: Server crash during simple c-language function