Re: Use standard die() handler for SIGTERM in bgworkers - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Use standard die() handler for SIGTERM in bgworkers
Date
Msg-id aZTfHbLIjIjqzehN@nathan
Whole thread Raw
In response to Use standard die() handler for SIGTERM in bgworkers  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-hackers
On Tue, Feb 17, 2026 at 11:18:00PM +0200, Heikki Linnakangas wrote:
> On 14/02/2026 23:56, Andres Freund wrote:
>> Uh, huh. So we were defaulting to completely unsafe code in bgworkers all this
>> time?  This obviously can self-deadlock against memory allocations etc in the
>> interrupted code... Or cause confusion with the IO streams for stderr. Or ...
> 
> Yep.
> 
> Here's this patch again, now with updated documentation.

Looks reasonable to me.

-- 
nathan



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: BackgroundPsql swallowing errors on windows
Next
From: Peter Eisentraut
Date:
Subject: Re: AIX support