Re: [HACKERS] generated columns - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: [HACKERS] generated columns
Date
Msg-id CANP8+jJhMg4uZmhVDtRY5wUOxv--6HdNMj=PicAEvbbGK55xNA@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] generated columns  (Andreas Karlsson <andreas@proxel.se>)
List pgsql-hackers
On 13 September 2017 at 09:09, Andreas Karlsson <andreas@proxel.se> wrote:
> On 09/13/2017 04:04 AM, Simon Riggs wrote:
>>
>> On 31 August 2017 at 05:16, Peter Eisentraut
>> <peter.eisentraut@2ndquadrant.com> wrote:
>>>
>>> - index support (and related constraint support)
>>
>>
>> Presumably you can't index a VIRTUAL column. Or at least I don't think
>> its worth spending time trying to make it work.
>
>
> I think end users would be surprised if one can index STORED columns and
> expressions but not VIRTUAL columns. So unless it is a huge project I would
> say it is worth it.

It must be stored in the index certainly. I guess virtual is similar
to expression indexes then.

-- 
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Re: [HACKERS] WIP patch: distinguish selectivity of < from <= and >from >=
Next
From: Kuntal Ghosh
Date:
Subject: Re: [HACKERS] WIP patch: distinguish selectivity of < from <= and >from >=