Re: Unix latch implementation that wakes on postmaster death
От | Tom Lane |
---|---|
Тема | Re: Unix latch implementation that wakes on postmaster death |
Дата | |
Msg-id | 28508.1305298081@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Unix latch implementation that wakes on postmaster death (Peter Geoghegan <peter@2ndquadrant.com>) |
Ответы |
Re: Unix latch implementation that wakes on postmaster death
|
Список | pgsql-hackers |
Peter Geoghegan <peter@2ndquadrant.com> writes: > Attached is a patch that builds upon Florian Pflug's earlier proof of > concept program for monitoring the postmaster. Cool. Like Robert, no time to review this in detail now, but ... > How should I be handling the EXEC_BACKEND case? Assuming that the open pipe descriptor is inherited across exec on Windows (and if it's not, we're back to square one) all you should have to do is get the pipe descriptor variables passed down to the child processes. There's some grotty code in postmaster.c that's used for this purpose --- see struct BackendParameters and associated functions. Just add some code there to pass down the values. I'm not that thrilled with the "life sign" terminology, but don't have a better idea right offhand. regards, tom lane
В списке pgsql-hackers по дате отправления: