Re: Can't "EXTRACT" from a field?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Can't "EXTRACT" from a field?
Дата
Msg-id 2182.1006479197@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Can't "EXTRACT" from a field?  (Brent Verner <brent@rcfile.org>)
Список pgsql-hackers
Brent Verner <brent@rcfile.org> writes:
> Something is strange, tho.

The construct you're poking around the edges of here is
    type-name  literal-string

which is an SQLish typed constant.  (Or more accurately, it's Thomas'
generalization of some type-specific constant syntaxes that appear in
SQL92.  AFAIK the spec itself doesn't claim this is a type-universal
construction.)

Casting something other than a string literal requires different, more
explicit syntax; eg, CAST(foo AS type), foo::type, or if the type name
is allowable as a function name type(foo) will work.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Further open item (Was: Status of 7.2)
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: TOAST performance (was Re: [GENERAL] Delete Performance)