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

Aleksander Alekseev <aleksander@timescale.com>

From: Aleksander Alekseev <aleksander@timescale.com>
To: pgsql-hackers@lists.postgresql.org
Cc: Michael Paquier <michael@paquier.xyz>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>, bt23yoshidar@oss.nttdata.com
Date: 2023-09-19T10:23:54Z
Lists: pgsql-hackers
Hi Michael,

> The patch looks incorrect to me.  In case you've not noticed, we'd
> still have the same problem if do_edit() fails [...]

You are right, I missed it. Your patch is correct while the original
one is not quite so.

-- 
Best regards,
Aleksander Alekseev



Commits

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