Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDea1-0004Hl-1f for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Oct 2018 23:53:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gDeZy-0001lL-T9 for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Oct 2018 23:53:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDeZy-0001lD-Mv for pgsql-bugs@lists.postgresql.org; Fri, 19 Oct 2018 23:53:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDeZr-00047T-UW for pgsql-bugs@postgresql.org; Fri, 19 Oct 2018 23:53:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w9JNr6KP020600; Fri, 19 Oct 2018 19:53:06 -0400 From: Tom Lane To: Andres Freund cc: Andrey , Jeff Janes , Pg Bugs Subject: Re: NOTIFY does not work as expected In-reply-to: <20181019231435.ovm5jd7zwpj3zs3a@alap3.anarazel.de> References: <20180704183055.hqlqm3ramerybzvd@alap3.anarazel.de> <29914.1539902374@sss.pgh.pa.us> <20181018224608.6d4v2fadyu3vrbx2@alap3.anarazel.de> <31090.1539904064@sss.pgh.pa.us> <16416.1539970591@sss.pgh.pa.us> <20181019204542.jemuckjxo7ga7q5g@alap3.anarazel.de> <20181019231435.ovm5jd7zwpj3zs3a@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 19 Oct 2018 16:14:35 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20598.1539993186.1@sss.pgh.pa.us> Date: Fri, 19 Oct 2018 19:53:06 -0400 Message-ID: <20599.1539993186@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-10-19 13:45:42 -0700, Andres Freund wrote: >> 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. I'm pretty skeptical of these arguments, as they depend on assumptions that there are no CHECK_FOR_INTERRUPTS calls anywhere in the relevant code paths outside be-secure.c. Even if that's true today, it doesn't seem like something to depend on. However, there's definitely merit in the idea that we shouldn't change the ProcDie behavior if we don't have to in order to fix the NOTIFY bug --- especially since I'd like to backpatch this. So if you're happy with the revised patch, I can go with that one. regards, tom lane