Re: Revamped PL/pgSQL Documentation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Revamped PL/pgSQL Documentation
Дата
Msg-id 26119.984775441@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Revamped PL/pgSQL Documentation  (Roberto Mello <rmello@cc.usu.edu>)
Список pgsql-docs
Roberto Mello <rmello@cc.usu.edu> writes:
> The part that confuses me is the end.  I assume that if you specify
> DEFAULT you must specify a value.  Am I right in understanding that
> notation as meaning:

> name [ CONSTANT ] type [ NOT NULL ] [ DEFAULT value | := value ];

> or perhaps it could be written like this:

> name [ CONSTANT ] type [ NOT NULL ] [ { DEFAULT | := } value ];

Use the source, Luke ... a quick look into plpgsql's gram.y shows that
the latter is correct, ie, 'DEFAULT' and ':=' are interchangeable
introducers for an initialization expression.

            regards, tom lane

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

Предыдущее
От: Roberto Mello
Дата:
Сообщение: Re: Revamped PL/pgSQL Documentation
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Revamped PL/pgSQL Documentation