Re: Add errdetail() with PID and UID about source of termination signal - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Add errdetail() with PID and UID about source of termination signal
Date
Msg-id a076e20d-fc56-4b5d-aa47-a52b4e7a5061@dunslane.net
Whole thread Raw
In response to Re: Add errdetail() with PID and UID about source of termination signal  (Andres Freund <andres@anarazel.de>)
Responses Re: Add errdetail() with PID and UID about source of termination signal
List pgsql-hackers


On 2026-04-07 Tu 10:55 AM, Andres Freund wrote:

This seems completely wrong from a layering POV.  The wrapper has no business
whatsoever to know that how SIGTERM is interpreted and thus no business
setting variables like ProcDieSenderPid.

Pretty sure have some sigterm handlers that shouldn't set ProcDieSenderPid.


A more correct answer here would be to forward information about the sender of
a signal to the signal handlers and let them interpret the information if
available.


OK, fair points. Does the attached meet your concerns?


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com
Attachment

pgsql-hackers by date:

Previous
From: Sami Imseih
Date:
Subject: Re: Refactor query normalization into core query jumbling
Next
From: Sami Imseih
Date:
Subject: Re: dshash_find_or_insert vs. OOM