Re: Suggested fix for \p and \r in psql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Suggested fix for \p and \r in psql
Дата
Msg-id 26292.1491146289@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Suggested fix for \p and \r in psql  ("Daniel Verite" <daniel@manitou-mail.org>)
Ответы Re: Suggested fix for \p and \r in psql
Re: Suggested fix for \p and \r in psql
Список pgsql-hackers
"Daniel Verite" <daniel@manitou-mail.org> writes:
> I've noticed two issues with the query buffer post-commit e984ef5
> (Support \if ... \elif ... \else ... \endif in psql scripting):

> 1. \p ignores the "previous buffer". Example:

Yeah, I did that intentionally, thinking that the old behavior was
confusing.  We can certainly discuss it though.  I'd tend to agree
with your point that \p and \w should print the same thing, but
maybe neither of them should look at the previous_buf.

> 2. \r keeps the "previous buffer". I think it should clear it.

I don't really agree with this.  The fact that it used to clear both
buffers was an implementation accident that probably nobody had even
understood clearly.  ISTM that loses functionality because you can't
do \g anymore.
        regards, tom lane



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Variable substitution in psql backtick expansion
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Suggested fix for \p and \r in psql