From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Alastair McKinley <a.mckinley@analyticsengines.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: psql 15beta1 does not print notices on the console until transaction completes
Date: Sun, 29 May 2022 13:47:27 -0700
Message-ID: <b255aee9-ff01-b59b-f6f6-8becb0d1a0d0@aklaver.com> (raw)
In-Reply-To: <PAXPR02MB760039506C87A2083AD85575E3DA9@PAXPR02MB7600.eurprd02.prod.outlook.com>
References: <PAXPR02MB760039506C87A2083AD85575E3DA9@PAXPR02MB7600.eurprd02.prod.outlook.com>
On 5/29/22 13:11, Alastair McKinley wrote:
> Hi all,
>
> I notice this change in behaviour with psql in 15beta1 when testing an existing codebase.
>
> I didn't see any mention of this change in the release notes and it surprised me.
>
> 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.
I am not seeing that.
Can you provide more information about how you are running test_notice()?
>
> in psql 14.3, it appears immediately as I would have expected.
>
> Is there a way to change psql behaviour to display notices immediately as in versions < 15?
>
> Best regards,
>
> Alastair
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: adrian.klaver@aklaver.com, a.mckinley@analyticsengines.com, pgsql-general@lists.postgresql.org
Subject: Re: psql 15beta1 does not print notices on the console until transaction completes
In-Reply-To: <b255aee9-ff01-b59b-f6f6-8becb0d1a0d0@aklaver.com>
References: <PAXPR02MB760039506C87A2083AD85575E3DA9@PAXPR02MB7600.eurprd02.prod.outlook.com> <b255aee9-ff01-b59b-f6f6-8becb0d1a0d0@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox