Re: ALTER COLUMN to change GENERATED ALWAYS AS expression? - Mailing list pgsql-general

From Tom Lane
Subject Re: ALTER COLUMN to change GENERATED ALWAYS AS expression?
Date
Msg-id 3215093.1675796458@sss.pgh.pa.us
Whole thread Raw
In response to Re: ALTER COLUMN to change GENERATED ALWAYS AS expression?  (Ron <ronljohnsonjr@gmail.com>)
List pgsql-general
Ron <ronljohnsonjr@gmail.com> writes:
> On 2/7/23 09:06, Adrian Klaver wrote:
>> To force immediate reclamation of space occupied by a dropped column, you 
>> can execute one of the forms of ALTER TABLE that performs a rewrite of the 
>> whole table. This results in reconstructing each row with the dropped 
>> column replaced by a null value."

> VACUUM FULL doesn't rewrite the table?

It moves all the tuples into a new file, but it does not rebuild
individual tuples, as would be needed to delete column values.

            regards, tom lane



pgsql-general by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: ALTER COLUMN to change GENERATED ALWAYS AS expression?
Next
From: Ron
Date:
Subject: Re: ALTER COLUMN to change GENERATED ALWAYS AS expression?