Re: Use standard die() handler for SIGTERM in bgworkers

Nathan Bossart <nathandbossart@gmail.com>

From: Nathan Bossart <nathandbossart@gmail.com>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Andres Freund <andres@anarazel.de>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2026-02-17T21:30:57Z
Lists: pgsql-hackers
On Tue, Feb 17, 2026 at 11:18:00PM +0200, Heikki Linnakangas wrote:
> On 14/02/2026 23:56, Andres Freund wrote:
>> We really need some instrumentation that fails if we do allocations in signal
>> handlers etc.
> 
> Yeah, that would be nice..

In theory we could pretty easily add assertions for that, given the
wrapper_handler business added a couple of years ago.  I'll put together a
patch...

-- 
nathan



Commits

  1. Use standard die() handler for SIGTERM in bgworkers