Re: psql \r changed behavior in pg10

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: psql \r changed behavior in pg10
Дата
Msg-id CAKFQuwbomYE9hP2x_nm5HRX1f7knmvDKycPKz7_989HDCEV0Qg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: psql \r changed behavior in pg10  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
On Wednesday, July 22, 2020, David G. Johnston <david.g.johnston@gmail.com> wrote:
On Wednesday, July 22, 2020, Emanuel Araújo <eacshm@gmail.com> 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 fashion.

I believe \e is now working as intended but assuming it worked differently in 9.6 the behavior change did not get noticed and so no release note entry was added for it.  Adding the new \if meta commands in v10 resulted in reworking of the code probably causing this to change.  We fixed the docs to match the expected behavior which was seen in v10 when the doc patch was written.


David J.

В списке pgsql-general по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: psql \r changed behavior in pg10
Следующее
От: Tom Lane
Дата:
Сообщение: Re: psql \r changed behavior in pg10