Re: ALTER COLUMN ... SET EXPRESSION to alter stored generated column's expression

From: Vik Fearing <vik(at)postgresfriends(dot)org>
To: Amul Sul <sulamul(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ALTER COLUMN ... SET EXPRESSION to alter stored generated column's expression
Date: 2023-08-22 11:01:57
Message-ID: 8ec6124c-d579-c6dc-1900-46849c066c9a@postgresfriends.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 8/2/23 12:35, Amul Sul wrote:
> Hi,
>
> Currently, we have an option to drop the expression of stored generated
> columns
> as:
>
> ALTER [ COLUMN ] column_name DROP EXPRESSION [ IF EXISTS ]
>
> But don't have support to update that expression. The attached patch
> provides
> that as:
>
> ALTER [ COLUMN ] column_name SET EXPRESSION expression

I am surprised this is not in the standard already. I will go work on that.
--
Vik Fearing

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vik Fearing 2023-08-22 12:01:19 Re: list of acknowledgments for PG16
Previous Message Alvaro Herrera 2023-08-22 10:41:30 Re: list of acknowledgments for PG16