Re: [patch] \g with multiple result sets and \watch with copy queries

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Daniel Verite" <daniel@manitou-mail.org>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2022-10-03T17:00:46Z
Lists: pgsql-hackers
"Daniel Verite" <daniel@manitou-mail.org> writes:
> The psql improvement in v15 to output multiple result sets does not
> behave as one might expect with \g: the output file or program
> to pipe into is opened/closed on each result set, overwriting the
> previous ones in the case of \g file.

Ugh.  I think we'd better fix that before 15.0, else somebody may
think this is the new intended behavior and raise compatibility
concerns when we fix it.  I will see if I can squeeze it in before
this afternoon's 15rc2 wrap.

			regards, tom lane



Commits

  1. Fix psql's behavior with \g for a multiple-command string.

  2. Remove dynamic translation of regression test scripts, step 1.