Re: BUG #18134: ROW_COUNT do not set to 0 when psql's \gset command get no rows returned

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Japin Li <japinli@hotmail.com>, amutu@amutu.com, pgsql-bugs@lists.postgresql.org
Date: 2023-10-02T02:27:45Z
Lists: pgsql-bugs
On Sat, Sep 30, 2023 at 08:58:12PM -0400, Tom Lane wrote:
> I'm content to wait a day and see if anybody wants to make an
> argument for back-patching.

Okay.  Seeing nothing, I've looked more at that this morning and
applied the change to HEAD, for now.
--
Michael

Commits

  1. psql: Set variables from query result on failure when printing tuples