Re: Should we document how column DEFAULT expressions work?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Should we document how column DEFAULT expressions work?
Дата
Msg-id 343884.1720213415@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Should we document how column DEFAULT expressions work?  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Should we document how column DEFAULT expressions work?
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> Well, 'now()' certainly _looks_ like a function call, though it isn't. 
> The fact that 'now()'::timestamptz and 'now'::timestamptz generate
> volatile results via a function call was my point.

The only reason 'now()'::timestamptz works is that timestamptz_in
ignores irrelevant punctuation (or what it thinks is irrelevant,
anyway).  I do not think we should include examples that look like
that, because it will further confuse readers who don't already
have a solid grasp of how this works.

            regards, tom lane



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