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 1nvbLW-0003hf-4o for pgsql-bugs@arkaria.postgresql.org; Mon, 30 May 2022 09:05:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nvbLU-0000HR-P9 for pgsql-bugs@arkaria.postgresql.org; Mon, 30 May 2022 09:05:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvbLU-0000H5-Gf for pgsql-bugs@lists.postgresql.org; Mon, 30 May 2022 09:05:52 +0000 Received: from sfr-1.cri.mines-paristech.fr ([77.158.180.225] helo=smtp.cri.ensmp.fr) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvbLS-0003Gp-6I for pgsql-bugs@lists.postgresql.org; Mon, 30 May 2022 09:05:52 +0000 Received: from laroche-adap.cri.ensmp.fr (laroche-adap.cri.ensmp.fr [10.2.14.39]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id 28F6BC005F; Mon, 30 May 2022 11:09:31 +0200 (CEST) Date: Mon, 30 May 2022 11:05:48 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Tom Lane cc: Alastair McKinley , PostgreSQL Bugs , Peter Eisentraut Subject: Re: psql 15beta1 does not print notices on the console until transaction completes In-Reply-To: <3662994.1653856025@sss.pgh.pa.us> Message-ID: References: <3662994.1653856025@sss.pgh.pa.us> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > 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 the 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). Yep, that is indeed possible, there is some hocus-pocus around notices there because they arrive somehow in any order. > I agree it's pretty undesirable, so I'm adding it as an open issue. Ok. -- Fabien.