Re: psql \r command is working? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: psql \r command is working?
Date
Msg-id 21740.1566224909@sss.pgh.pa.us
Whole thread Raw
In response to psql \r command is working?  (Sergei Kornilov <sk@zsrv.org>)
Responses Re: psql \r command is working?
List pgsql-hackers
Sergei Kornilov <sk@zsrv.org> writes:
> Is psql command \r actually works? I expected \r and then \e command should start editor without text of last query.

\r clears the current query buffer.  \e without an argument is
defined to edit the current query buffer, or if that is empty,
the last query.  I don't see anything particularly wrong here.

> I see this behavior change on >= 10 versions

Possibly fixed as a side effect of e984ef586.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Unused header file inclusion
Next
From: Sergei Kornilov
Date:
Subject: Re: psql \r command is working?