Re: Virtual generated columns

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: jian he <jian(dot)universality(at)gmail(dot)com>, Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Subject: Re: Virtual generated columns
Date: 2024-11-29 10:13:45
Message-ID: e5075513-2a0e-4550-bf45-41942af2b676@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Here is a new patch version, with several updates.

- Expanded the commit message.

- Added more documentation on storage of virtual columns.

- Added more documentation and tests on security and access privilege
questions. (The functionality itself has not changed.)

- Added support for ALTER TABLE ... SET EXPRESSION.

- Added support for virtual columns in trigger column lists. (For that,
I renamed ExecInitStoredGenerated() to ExecInitGenerated(), which
handles the computation of ri_extraUpdatedCols.)

- Correctly prevent not-null constraints on virtual columns in all cases
(see nearby message).

- Expand virtual columns when checking publication row filter
expressions (see nearby message). Also added tests in 028_row_filter.pl.

According to my notes, this is now feature complete and has no glaring
unsolved problems known to me.

Attachment Content-Type Size
v10-0001-Virtual-generated-columns.patch text/plain 221.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2024-11-29 10:14:16 Re: Virtual generated columns
Previous Message Thomas Munro 2024-11-29 10:12:57 Re: Cannot find a working 64-bit integer type on Illumos