Re: Behavior of GENERATED columns per SQL2003

From: Richard Huxton <dev(at)archonet(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, Zoltan Boszormenyi <zb(at)cybertec(dot)at>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Behavior of GENERATED columns per SQL2003
Date: 2007-05-11 07:32:56
Message-ID: 46441C28.6000003@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> "Simon Riggs" <simon(at)2ndquadrant(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2007-05-11 08:15:09 Re: [pgsql-es-ayuda] Error SSL en Postgresql
Previous Message Tom Lane 2007-05-11 02:31:30 Re: Behavior of GENERATED columns per SQL2003