Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvPVV-0000H7-4C for pgsql-bugs@arkaria.postgresql.org; Sun, 29 May 2022 20:27:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nvPVS-0005uL-PZ for pgsql-bugs@arkaria.postgresql.org; Sun, 29 May 2022 20:27:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvPVS-0005uA-HN for pgsql-bugs@lists.postgresql.org; Sun, 29 May 2022 20:27:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvPVK-0005IT-Th for pgsql-bugs@lists.postgresql.org; Sun, 29 May 2022 20:27:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 24TKR58A3662995; Sun, 29 May 2022 16:27:05 -0400 From: Tom Lane To: Alastair McKinley cc: pgsql-bugs@lists.postgresql.org, Peter Eisentraut , Fabien COELHO Subject: Re: psql 15beta1 does not print notices on the console until transaction completes In-reply-to: References: Comments: In-reply-to Alastair McKinley message dated "Sun, 29 May 2022 20:11:22 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3662993.1653856025.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 29 May 2022 16:27:05 -0400 Message-ID: <3662994.1653856025@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk [ redirecting to -bugs ] Alastair McKinley writes: > Using this test function: > create or replace function test_notice() returns void as = > $$ = > begin = > raise notice 'hello'; = > perform pg_sleep(10); = > end; $$ language plpgsql; > In psql 15beta1, the "hello" message only appears on the console when th= e transaction completes. > in psql 14.3, it appears immediately as I would have expected. A quick cross-check confirms that this is a psql, not server, behavior change. I didn't bisect, but I'm betting this is a side-effect of 7844c9918 (Show all query results by default). I agree it's pretty undesirable, so I'm adding it as an open issue. regards, tom lane