pgsql: psql: Show notices immediately (again) - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: psql: Show notices immediately (again)
Date
Msg-id E1nzCjO-003QVj-5f@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
psql: Show notices immediately (again)

The new show-all-results feature in psql (7844c9918) went out of its
way to show notices next to the results of the statements (in a
multi-statement string) that caused them.  This also had the
consequence that notices for a single statement were not shown until
after the statement had executed, instead of right away.  After some
discussion, it seems very difficult to satisfy both of these goals, so
here we are giving up on the first goal and just show the notices as
we get them.  This restores the pre-7844c9918 behavior for notices.

Reported-by: Alastair McKinley <a.mckinley@analyticsengines.com>
Author: Fabien COELHO <coelho@cri.ensmp.fr>
Discussion:
https://www.postgresql.org/message-id/flat/PAXPR02MB760039506C87A2083AD85575E3DA9%40PAXPR02MB7600.eurprd02.prod.outlook.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e77de23fbb0f4ef27090c144edcfa889bb2a06d5

Modified Files
--------------
src/bin/psql/common.c              | 64 --------------------------------------
src/test/regress/expected/psql.out |  8 ++---
2 files changed, 4 insertions(+), 68 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Be more careful about GucSource for internally-driven GUC settin
Next
From: Etsuro Fujita
Date:
Subject: pgsql: Improve comments for trivial_subqueryscan().