Re: Bug fix for psql's meta-command \ev

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Ryoga Yoshida <bt23yoshidar@oss.nttdata.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2023-09-15T05:26:16Z
Lists: pgsql-hackers
On Fri, Sep 15, 2023 at 11:37:46AM +0900, Ryoga Yoshida wrote:
> I think this is a bug in psql's \ev meta-command. Even when \ev fails, it
> should not leave the garbage string in psql's query buffer and the following
> query should be completed successfully.

Right.  Good catch.  Will look at that a bit more to see if the resets
are correctly placed, particularly in light of \ef.
--
Michael

Commits

  1. psql: Reset query buffer of \e, \ef and \ev on error