Re: ALTER COLUMN to change GENERATED ALWAYS AS expression?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ron <ronljohnsonjr(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: ALTER COLUMN to change GENERATED ALWAYS AS expression?
Date: 2023-02-07 19:00:58
Message-ID: 3215093.1675796458@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ron <ronljohnsonjr(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2023-02-07 19:05:07 Re: ALTER COLUMN to change GENERATED ALWAYS AS expression?
Previous Message Laurenz Albe 2023-02-07 19:00:29 Re: ALTER COLUMN to change GENERATED ALWAYS AS expression?