Re: psql 15beta1 does not print notices on the console until transaction completes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alastair McKinley <a(dot)mckinley(at)analyticsengines(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Subject: Re: psql 15beta1 does not print notices on the console until transaction completes
Date: 2022-05-29 20:27:05
Message-ID: 3662994.1653856025@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

[ redirecting to -bugs ]

Alastair McKinley <a(dot)mckinley(at)analyticsengines(dot)com> 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).

I agree it's pretty undesirable, so I'm adding it as an open issue.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Adrian Klaver 2022-05-29 20:47:27 Re: psql 15beta1 does not print notices on the console until transaction completes
Previous Message Alastair McKinley 2022-05-29 20:11:22 psql 15beta1 does not print notices on the console until transaction completes

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2022-05-29 20:47:27 Re: psql 15beta1 does not print notices on the console until transaction completes
Previous Message Alastair McKinley 2022-05-29 20:11:22 psql 15beta1 does not print notices on the console until transaction completes