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