Re: pgsql: Add psql tab completion for DO blocks.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Add psql tab completion for DO blocks.
Дата
Msg-id 9312.1266215969@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Add psql tab completion for DO blocks.  (itagaki@postgresql.org (Takahiro Itagaki))
Список pgsql-committers
itagaki@postgresql.org (Takahiro Itagaki) writes:
> Add psql tab completion for DO blocks.
> Also adjust documentation of DO.

This syntax synopsis is completely nuts:

DO { [ LANGUAGE <replaceable class="PARAMETER">lang_name</replaceable> ] | <replaceable
class="PARAMETER">code</replaceable>} ... 

It implies that an empty string is a valid substitute for the { ... }
construct, since I could take the first choice and then omit the
optional bracketed construct.

I think that it would be logically correct without the square brackets,
but as a matter of clarity I really doubt it's an improvement over the
original.

            regards, tom lane

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

Предыдущее
От: mhasegawa@pgfoundry.org (User Mhasegawa)
Дата:
Сообщение: pgstatsinfo - pg_statsinfo: Retry processing at the execute query error.
Следующее
От: stark@postgresql.org (Greg Stark)
Дата:
Сообщение: pgsql: Temporarily disable fsyncing the database directory in CREATE