Re: Add errdetail() with PID and UID about source of termination signal

Поиск
Список
Период
Сортировка
Искать
От
Andrew Dunstan
Тема
Re: Add errdetail() with PID and UID about source of termination signal
Дата
в 19:49:19
Msg-id
a076e20d-fc56-4b5d-aa47-a52b4e7a5061@dunslane.net
Ответ на
Список
Дерево обсуждения
Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Jim Jones <jim.jones@uni-muenster.de>
Re: Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Chao Li <li.evan.chao@gmail.com>
Re: Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Chao Li <li.evan.chao@gmail.com>
Re: Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Chao Li <li.evan.chao@gmail.com>
Re: Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Daniel Gustafsson <daniel@yesql.se>
Re: Add errdetail() with PID and UID about source of termination signal jie wang <jugierwang@gmail.com>
Re: Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Andres Freund <andres@anarazel.de>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Andres Freund <andres@anarazel.de>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Andres Freund <andres@anarazel.de>
Re: Add errdetail() with PID and UID about source of termination signal Chao Li <li.evan.chao@gmail.com>
Re: Add errdetail() with PID and UID about source of termination signal Jim Jones <jim.jones@uni-muenster.de>
Re: Add errdetail() with PID and UID about source of termination signal Andres Freund <andres@anarazel.de>
Re: Add errdetail() with PID and UID about source of termination signal Chao Li <li.evan.chao@gmail.com>
Re: Add errdetail() with PID and UID about source of termination signal Chao Li <li.evan.chao@gmail.com>
Re: Add errdetail() with PID and UID about source of termination signal Andres Freund <andres@anarazel.de>
Re: Add errdetail() with PID and UID about source of termination signal Chao Li <li.evan.chao@gmail.com>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Chao Li <li.evan.chao@gmail.com>
Re: Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Chao Li <li.evan.chao@gmail.com>
Re: Add errdetail() with PID and UID about source of termination signal Kirill Reshke <reshkekirill@gmail.com>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Kirill Reshke <reshkekirill@gmail.com>
Re: Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Tom Lane <tgl@sss.pgh.pa.us>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Tom Lane <tgl@sss.pgh.pa.us>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Tom Lane <tgl@sss.pgh.pa.us>
Re: Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Chao Li <li.evan.chao@gmail.com>
Re: Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Andrew Dunstan <andrew@dunslane.net>
Re: Add errdetail() with PID and UID about source of termination signal Jacob Champion <jacob.champion@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: Add errdetail() with PID and UID about source of termination signal Andres Freund <andres@anarazel.de>


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
В списке pgsql-hackers по дате отправления
От: Sami Imseih
Дата:
От: Sami Imseih
Дата:
FAQ