Re: [HACKERS] Behavior of GENERATED columns per SQL2003

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: [HACKERS] Behavior of GENERATED columns per SQL2003
Дата
в 12:02:54
Msg-id
1347.1178636561@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Re: [HACKERS] Behavior of GENERATED columns per SQL2003 Zoltan Boszormenyi <zb@cybertec.at>
Re: [HACKERS] Behavior of GENERATED columns per SQL2003 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Behavior of GENERATED columns per SQL2003 Bruce Momjian <bruce@momjian.us>
Zoltan Boszormenyi  writes:
> Tom Lane �rta:
>> * There is no GENERATED BY DEFAULT AS (expr) in the spec.

> Yes, and because it already exists and called DEFAULT.

No, plain DEFAULT isn't a substitute, because it can't reference the
values of other columns.  I think there is a use-case for an overridable
GENERATED expression, but won't press the point right now.

>> Is anyone familiar with a database that implements SQL-spec generated
>> columns?  Do they actually store the columns?

> David Fuhry answered this question with the advertised intention.

Yeah, that's good to know --- the text of the spec is quite unhelpful
about telling you what they intended ...

			regards, tom lane
В списке pgsql-patches по дате отправления
От: Zoltan Boszormenyi
Дата:
От: Ale Raza
Дата:
FAQ