Re: psql \r command is working?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sergei Kornilov <sk(at)zsrv(dot)org>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql \r command is working?
Date: 2019-08-19 14:28:29
Message-ID: 21740.1566224909@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sergei Kornilov <sk(at)zsrv(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sergei Kornilov 2019-08-19 14:34:24 Re: psql \r command is working?
Previous Message Alvaro Herrera 2019-08-19 14:22:14 Re: Unused header file inclusion