Re: Behavior of GENERATED columns per SQL2003

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Behavior of GENERATED columns per SQL2003
Дата
Msg-id 46441C28.6000003@archonet.com
обсуждение исходный текст
Ответ на Re: Behavior of GENERATED columns per SQL2003  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> "Simon Riggs" <simon@2ndquadrant.com> writes:
>> On Thu, 2007-05-10 at 10:11 -0400, Tom Lane wrote:
>>> As for GENERATED ALWAYS AS (expr), now that we understand that it's not
>>> supposed to define a virtual column, what's the point?
> 
>> We do need virtual columns, whether the spec requires them or not.
> 
> Agreed, they seem more useful than what the spec's got in mind.  You can
> fake a virtual column using a view, but it's a whole lot more painful
> than faking a GENERATED column using a trigger (at least if you wish the
> view to be updatable).

If they could play a part in foreign keys that would be useful too.

--   Richard Huxton  Archonet Ltd


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Behavior of GENERATED columns per SQL2003
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: [pgsql-es-ayuda] Error SSL en Postgresql