Re: [HACKERS] latch usage and postmaster death

2016-03-21 Thread Robert Haas
On Mon, Mar 21, 2016 at 5:35 AM, Andres Freund 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 wonde

[HACKERS] latch usage and postmaster death

2016-03-21 Thread Andres Freund
Hi, 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 m