Re: Can a child process detect postmaster death when in pg_usleep?
| От | Tom Lane |
|---|---|
| Тема | Re: Can a child process detect postmaster death when in pg_usleep? |
| Дата | |
| Msg-id | 162764.1624892517@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Can a child process detect postmaster death when in pg_usleep? (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>) |
| Ответы |
Re: Can a child process detect postmaster death when in pg_usleep?
|
| Список | pgsql-hackers |
Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> writes:
> On Thu, Jun 24, 2021 at 12:04 PM Michael Paquier <michael@paquier.xyz> wrote:
>> On top of that, not reacting on signals can be
>> interesting to keep as a behavior for developers?
> Yeah, it can be useful at times as it enables debugging even when the
> postmaster dies.
Dunno ... I cannot recall ever having had that as a debugging requirement
in a couple of decades worth of PG bug-chasing. If the postmaster is
dying, you generally want to deal with that before bothering with child
processes. Moreover, child processes that don't go awy when the
postmaster does are a very nasty problem, because they could screw up
subsequent debugging work.
regards, tom lane
В списке pgsql-hackers по дате отправления: