Re: Disallow USING clause when altering type of generated column - Mailing list pgsql-hackers

From Yugo Nagata
Subject Re: Disallow USING clause when altering type of generated column
Date
Msg-id 20240821161402.7cd8987cdeb5f22e783cec11@sraoss.co.jp
Whole thread Raw
In response to Disallow USING clause when altering type of generated column  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
On Wed, 21 Aug 2024 08:17:45 +0200
Peter Eisentraut <peter@eisentraut.org> wrote:

> A USING clause when altering the type of a generated column does not 
> make sense.  It would write the output of the USING clause into the 
> converted column, which would violate the generation  expression.
> 
> This patch adds a check to error out if this is specified.

I’m afraid you forgot to attach the patch.
It seems for me that this fix is reasonable though.

Regards,
Yugo Nagata

> 
> There was a test for this, but that test errored out for a different 
> reason, so it was not effective.
> 
> discovered by Jian He at [0]
> 
> [0]: 
> https://www.postgresql.org/message-id/CACJufxEGPYtFe79hbsMeOBOivfNnPRsw7Gjvk67m1x2MQggyiQ@mail.gmail.com
> 
> 


-- 
Yugo Nagata <nagata@sraoss.co.jp>



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Taking into account syncrep position in flush_lsn reported by apply worker
Next
From: Amit Kapila
Date:
Subject: Re: Taking into account syncrep position in flush_lsn reported by apply worker