Re: [HACKERS] Optional message to user when terminating/cancelling backend
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Yugo Nagata <nagata@sraoss.co.jp>, Thomas Munro <thomas.munro@enterprisedb.com>, Michael Paquier <michael.paquier@gmail.com>, PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Date: 2018-01-24T15:45:48Z
Lists: pgsql-hackers
A quick suggestion from a passer-by -- would you put the new code in src/backend/storage/ipc/backend_signal.c instead? Sounds like a better place than utils/misc/; and "signal" is more general in nature than just "cancel". A bunch of stuff from utils/adt/misc.c (???) can migrate to the new file -- everything from line 201 to 362 at least, that is: pg_signal_backend pg_cancel_backend pg_terminate_backend pg_reload_conf pg_rotate_logfile Maybe have two patches, 0001 creates the files moving the contents over, then 0002 adds your new stuff on top. /me wonders if there's anything that would suggest to make this extensive to processes other than backends ... -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Refactor user-facing SQL functions signalling backends
- 09921f397b84 12.0 landed
-
Introduce 64-bit hash functions with a 64-bit seed.
- 81c5e46c490e 11.0 cited