Re: kill -KILL: What happens?

Поиск
Список
Период
Сортировка
От Florian Pflug
Тема Re: kill -KILL: What happens?
Дата
Msg-id F339B94C-AF2B-40E6-A9D1-4F6429790806@phlo.org
обсуждение исходный текст
Ответ на Re: kill -KILL: What happens?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: kill -KILL: What happens?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Jan13, 2011, at 19:00 , Tom Lane wrote:
> At least on Unix I don't believe there is any other solution.  You
> could try looking at ps output but there's a fundamental race condition,
> ie the postmaster could spawn another child just before you kill it,
> whereupon the child is reassigned to init and there's no longer a good
> way to tell that it came from that postmaster.

Maybe I'm totally confused, but ...

Couldn't normal backends call PostmasterIsAlive and exit if not, just
like the startup process, the stats collector, autovacuum, bgwriter,
walwriter, walreceiver, walsender and the wal archiver already do?

I assumed they do, but now that I grepped the code it seems they don't.

best regards,
Florian Pflug



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

Предыдущее
От: Joel Jacobson
Дата:
Сообщение: Re: Possible bug in pg_settings/pg_depend
Следующее
От: Joel Jacobson
Дата:
Сообщение: Re: pg_depend explained