Re: Can a child process detect postmaster death when in pg_usleep? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Can a child process detect postmaster death when in pg_usleep?
Date
Msg-id 162764.1624892517@sss.pgh.pa.us
Whole thread Raw
In response to Re: Can a child process detect postmaster death when in pg_usleep?  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Responses Re: Can a child process detect postmaster death when in pg_usleep?
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgindent run
Next
From: Andrew Dunstan
Date:
Subject: Re: code fork June 28th