psql \r changed behavior in pg10 - Mailing list pgsql-general

From Emanuel Araújo
Subject psql \r changed behavior in pg10
Date
Msg-id CAMuTAkbLxS7McO9P7U=9xr94hM_D+T5VYEgEsMuS5uwrb5N3xA@mail.gmail.com
Whole thread Raw
Responses Re: psql \r changed behavior in pg10
List pgsql-general
Hi,

When used PostgreSQL 9.6.* it was common use in psql \r\e to clear a buffer query and open the empty text editor.  Works fine for me and it was very useful in my tasks.

Since PostgreSQL 10, this behavior changed and not more clear the buffer query.

psql helps show that \r reset (clear) the query buffer but in practice don't work or I do not understand how would work.

Example using postgrsql 11.8 :

select 1;
\e
-> Open temp file with a last statement "select 1;"
exit text editor and run command.  It's ok.
\r
\e
-> Open temp file with the same last command "select 1;"
is it right?

--
Regards,

Emanuel Araújo



pgsql-general by date:

Previous
From: Surya Widyanto
Date:
Subject: Re: Slow or Cannot Connect to PostgreSQL Instance Service on Windows 10
Next
From: "David G. Johnston"
Date:
Subject: Re: psql \r changed behavior in pg10