Re: SQL2003 GENERATED ... AS ... syntax

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SQL2003 GENERATED ... AS ... syntax
Дата
Msg-id 26974.1059926626@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: SQL2003 GENERATED ... AS ... syntax  (des@des.no (Dag-Erling Smørgrav))
Список pgsql-hackers
des@des.no (Dag-Erling Smørgrav) writes:
> I thought about it, but won't that change the on-disk format?  Since
> minor version upgrades aren't supposed to require a dump / restore,
> and I understand 7.4 is already in feature freeze, the earliest
> opportunity for something like this would be 7.5.

The earliest opportunity is 7.5 anyway.  We don't do feature additions
in dot-releases, only bug fixes.

I don't much care for a trigger-based implementation of the
functionality; it seems like a crude way to do it.  Seems like an easier
answer would involve rejecting attempts to set the column explicitly
during the rewriter stage that inserts default values.

I haven't looked at the SQL200x spec so I'm not sure exactly how they
define GENERATED ALWAYS --- is it an error to try to override the
default, or is your attempt silently ignored?  We could do either.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 7.4 COPY BINARY Format Change
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SQL2003 GENERATED ... AS ... syntax