Re: psql \r changed behavior in pg10

2020-07-22 Thread Tom Lane
"David G. Johnston" writes: > On Wednesday, July 22, 2020, Emanuel Araújo wrote: >> \r >> \e >> -> Open temp file with the same last command "select 1;" >> is it right? > Documentation since v10: > Or, if the current query buffer is empty, the most recently executed query > is copied to a

Re: psql \r changed behavior in pg10

2020-07-22 Thread David G. Johnston
On Wednesday, July 22, 2020, David G. Johnston wrote: > On Wednesday, July 22, 2020, Emanuel Araújo wrote: > >> >> \r >> \e >> -> Open temp file with the same last command "select 1;" >> is it right? >> >> > Documentation since v10: > > Or, if the current query buffer is empty, the most

Re: psql \r changed behavior in pg10

2020-07-22 Thread David G. Johnston
On Wednesday, July 22, 2020, Emanuel Araújo wrote: > > \r > \e > -> Open temp file with the same last command "select 1;" > is it right? > > Documentation since v10: Or, if the current query buffer is empty, the most recently executed query is copied to a temporary file and edited in the same

psql \r changed behavior in pg10

2020-07-22 Thread Emanuel Araújo
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