Re: docs: psql and variable interpolation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: docs: psql and variable interpolation
Дата
Msg-id 3077670.1594828184@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: docs: psql and variable interpolation  (Philippe Beaudoin <philippe.beaudoin@dalibo.com>)
Ответы Re: docs: psql and variable interpolation
Список pgsql-docs
Philippe Beaudoin <philippe.beaudoin@dalibo.com> writes:
> Le 13/07/2020 à 17:45, David G. Johnston a écrit :
>> If it is only \copy that is an exception I’d rather just say (except 
>> \copy} and not have the user meticulously read each item for the 
>> single exception.  This extends to if there are a few.

> As far as I know, the \! metacommand is another exception. But I don't 
> know if there are some others.

Looking at the psql source code, the commands that use OT_WHOLE_LINE
argument parsing are

\copy
\ef, \ev
\sf, \sv
\help
\!

There's also OT_FILEPIPE argument parsing, which acts like WHOLE_LINE
if the argument starts with "|" (and otherwise is normal AFAICS).
That's used by

\g, \gx
\o
\w

            regards, tom lane



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

Предыдущее
От: Philippe Beaudoin
Дата:
Сообщение: Re: docs: psql and variable interpolation
Следующее
От: Michael Christofides
Дата:
Сообщение: Re: List of pages from versions 9, 10, and 11 that don't exist in "current"