Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e866f-0008Ko-D5 for pgsql-docs@arkaria.postgresql.org; Fri, 27 Oct 2017 14:59:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e866e-0003gG-W2 for pgsql-docs@arkaria.postgresql.org; Fri, 27 Oct 2017 14:59:33 +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.84_2) (envelope-from ) id 1e866H-0002ph-B6 for pgsql-docs@postgresql.org; Fri, 27 Oct 2017 14:59:09 +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.84_2) (envelope-from ) id 1e866C-0007Yn-DR for pgsql-docs@postgresql.org; Fri, 27 Oct 2017 14:59:07 +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 v9REx0jr014804; Fri, 27 Oct 2017 10:59:01 -0400 From: Tom Lane To: mark@inomial.com cc: pgsql-docs@postgresql.org Subject: Re: Prepare transaction doesn't mention NOTIFY In-reply-to: <20171024010602.1488.80066@wrigleys.postgresql.org> References: <20171024010602.1488.80066@wrigleys.postgresql.org> Comments: In-reply-to mark@inomial.com message dated "Tue, 24 Oct 2017 01:06:02 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14802.1509116340.1@sss.pgh.pa.us> Date: Fri, 27 Oct 2017 10:59:00 -0400 Message-ID: <14803.1509116340@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org mark@inomial.com writes: > Hi, in prepare transaction documentation in PG10 and earlier, it says that > you can't prepare a transaction with LISTEN or UNLISTEN but it doesn't > mention NOTIFY. Yup, that's an oversight --- fixed. > I know this isn't the place to ask (and I'll never see the answer :) but I'm > baffled by the lack of support for NOTIFY in prepared transactions, The big problem is that we can't do anything at PREPARE time to guarantee that the NOTIFY will succeed. Admittedly, the queue is large enough that failure to insert the message isn't too likely, but "probably it will work" is not the semantics we want from PREPARE. regards, tom lane -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs