Re: latch usage and postmaster death - Mailing list pgsql-hackers

From Robert Haas
Subject Re: latch usage and postmaster death
Date
Msg-id CA+TgmoZTXi9xC187vKRWEhCYPJAYirbqYmJBTCsQLNB+b2FDiQ@mail.gmail.com
Whole thread Raw
In response to latch usage and postmaster death  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Mon, Mar 21, 2016 at 5:35 AM, Andres Freund <andres@anarazel.de> wrote:
> a significant number of WaitLatch's in the backend currently don't check
> for postmaster death. That's imo wrong.  E.g. SELECT pg_sleep(100); just
> continues to run.
>
> I think we should change most sites to error out in that case. I wonder
> if we shouldn't add another WL_ flag that automatically makes the latch
> code do so; instead of repeating the code at every callsite.

Yeah, or just make it do it always.  And probably FATAL rather than ERROR.

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



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Parallel Aggregate
Next
From: Konstantin Knizhnik
Date:
Subject: Re: Applying logical replication changes by more than one process