Re: NOTIFY does not work as expected
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrey <parihaaraka@gmail.com>, Jeff Janes <jeff.janes@gmail.com>, Pg Bugs <pgsql-bugs@postgresql.org>
Date: 2018-10-19T23:14:35Z
Lists: pgsql-bugs
Hi, On 2018-10-19 13:45:42 -0700, Andres Freund wrote: > On 2018-10-19 13:36:31 -0400, Tom Lane wrote: > > If we're willing to accept a ProcDie interrupt during secure_read at all, > > I don't see why not to do it even if we got some data. We'll accept the > > interrupt anyway the next time something happens to do > > CHECK_FOR_INTERRUPTS; and it's unlikely that that would not be till after > > we'd completed the query, so the net effect is just going to be that we > > waste some cycles first. > > I don't immediately see a problem with changing this for reads. One argument against changing it, although not a very strong one, is that processing a proc die even when non-blocking prevents us from processing commands like a client's X/terminate even if we already have the necessary input. Greetings, Andres Freund
Commits
-
Client-side fixes for delayed NOTIFY receipt.
- ecc59e31a81e 10.6 landed
- d30d27a52818 11.1 landed
- ac3be116a798 9.5.15 landed
- 4247db62522f 12.0 landed
- 34aad21cbf03 9.6.11 landed
-
Server-side fix for delayed NOTIFY and SIGTERM processing.
- f4941666afc6 9.5.15 landed
- cbab94077e12 9.6.11 landed
- 7aaeb7b45ac7 11.1 landed
- 3bdef6d21131 10.6 landed
- 2ddb9149d14d 12.0 landed
-
Introduce and use infrastructure for interrupt processing during client reads.
- 4f85fde8eb86 9.5.0 cited