Re: Non-Stored Generated Columns - Mailing list pgsql-general

From Laurenz Albe
Subject Re: Non-Stored Generated Columns
Date
Msg-id c634fdaa0e1795a6bf5fa6528a5750fc1c54c127.camel@cybertec.at
Whole thread Raw
In response to Non-Stored Generated Columns  (Dominique Devienne <ddevienne@gmail.com>)
Responses Re: Non-Stored Generated Columns
List pgsql-general
On Wed, 2024-02-28 at 16:09 +0100, Dominique Devienne wrote:
> From https://www.postgresql.org/docs/16/ddl-generated-columns.html:
> > PostgreSQL currently implements only stored generated columns
>
> We use generated columns extensively.
> And we have foreign-keys attached to those generated columns.
> The fact they are always Stored thus wastes space in our case.
> Any chance PostgreSQL might gain actual virtual / non-stored generated columns soon? Ever?
>
> For reference, both Oracle and SQLite have virtual / non-stored columns.
> And both support FKs and indexes on those too.
> Would be great to have feature parity on this particular point, eventually.

Isn't almost all of that functionality covered by a view?

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: Rob Sargent
Date:
Subject: Re: Need Assistance: Command to display procedures does not work
Next
From: Adrian Klaver
Date:
Subject: Re: Need Assistance: Command to display procedures does not work