Re: Signals in a BGW - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Signals in a BGW
Date
Msg-id CA+TgmobVtC_mKtkw0KHMwvSJ-gCitrOE7myo=TxhJ65W6SCtbw@mail.gmail.com
Whole thread Raw
In response to Re: Signals in a BGW  (Chapman Flack <chap@anastigmatix.net>)
Responses Re: Signals in a BGW
List pgsql-hackers
On Wed, Dec 6, 2017 at 6:59 PM, Chapman Flack <chap@anastigmatix.net> wrote:
>> The default handler is bgworker_die ; see src/backend/postmaster
>> /bgworker.c
>> . I don't know if elog() is safe in a signal handler, but I guess in
>> the absence of non-reentrant errcontext functions...
>
> That does seem bold, doesn't it?

Yes, I think it's flat busted.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Speeding up pg_upgrade
Next
From: Robert Haas
Date:
Subject: Re: Postgres with pthread