Re: ALTER COLUMN ... SET EXPRESSION to alter stored generated column's expression - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: ALTER COLUMN ... SET EXPRESSION to alter stored generated column's expression
Date
Msg-id 30e56b77-3685-48ea-8954-9b8845f84e04@eisentraut.org
Whole thread Raw
In response to Re: ALTER COLUMN ... SET EXPRESSION to alter stored generated column's expression  (Amul Sul <sulamul@gmail.com>)
Responses Re: ALTER COLUMN ... SET EXPRESSION to alter stored generated column's expression
List pgsql-hackers
On 25.10.23 08:12, Amul Sul wrote:
> Here is the rebase version for the latest master head(673a17e3120).
> 
> I haven't done any other changes related to the ON UPDATE trigger since that
> seems non-trivial; need a bit of work to add trigger support in 
> ATRewriteTable().
> Also, I am not sure yet, if we were doing these changes, and the correct 
> direction
> for that.

I did some detailed testing on Db2, Oracle, and MariaDB (the three 
existing implementations of this feature that I'm tracking), and none of 
them fire any row or statement triggers when the respective statement to 
alter the generation expression is run.  So I'm withdrawing my comment 
that this should fire triggers.  (I suppose event triggers are available 
if anyone really needs the functionality.)




pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: Infinite Interval
Next
From: Tom Lane
Date:
Subject: Re: GUC names in messages