Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j2clq-0002R5-Ay for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Feb 2020 15:20:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j2clp-0006ky-4e for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Feb 2020 15:20:45 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1j2clo-0006kr-Sj for pgsql-bugs@lists.postgresql.org; Fri, 14 Feb 2020 15:20:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j2clj-0001bT-B6 for pgsql-bugs@lists.postgresql.org; Fri, 14 Feb 2020 15:20:44 +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 01EFKa2B016671; Fri, 14 Feb 2020 10:20:36 -0500 From: Tom Lane To: rekgrpth@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16258: exec_simple_query does not call ProcessCompletedNotifies after CommitTransactionCommand In-reply-to: <16258-f5218e29662078f7@postgresql.org> References: <16258-f5218e29662078f7@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Fri, 14 Feb 2020 06:27:40 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16669.1581693636.1@sss.pgh.pa.us> Date: Fri, 14 Feb 2020 10:20:36 -0500 Message-ID: <16670.1581693636@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > psql -c "begin;select pg_notify('channel', concat_ws(' = ', 'a', > clock_timestamp()::text));commit;select pg_sleep(10);begin;select > pg_notify('channel', concat_ws(' = ', 'b', > clock_timestamp()::text));commit;select now(), clock_timestamp();" I think the main reason why this isn't reporting any notifications is that you forgot to issue a LISTEN. regards, tom lane