pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: ALTER COLUMN to change GENERATED ALWAYS AS expression?
Date: Tue, 07 Feb 2023 14:00:58 -0500
Message-ID: <3215093.1675796458@sss.pgh.pa.us> (raw)
In-Reply-To: <cd56aa1b-1797-57c4-aaea-5c58a27bcea7@gmail.com>
References: <4C775CB6-D73C-42B6-A94E-40C495AAA521@americanefficient.com>
	<6442cf200b9ba3d86e695172c4da98a802bda48e.camel@cybertec.at>
	<B728C50A-9EF1-4E13-82D8-B6CEAFC51B1F@americanefficient.com>
	<60ebe24e-33c4-2f56-a3ea-fc85518ecc22@aklaver.com>
	<cd56aa1b-1797-57c4-aaea-5c58a27bcea7@gmail.com>

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





view thread (9+ messages)  latest in thread

Message-ID: <3215093.1675796458@sss.pgh.pa.us>
Permalink:  ../3215093.1675796458@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3215093.1675796458@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com
  Subject: Re: ALTER COLUMN to change GENERATED ALWAYS AS expression?
  In-Reply-To: <3215093.1675796458@sss.pgh.pa.us>
  References: <4C775CB6-D73C-42B6-A94E-40C495AAA521@americanefficient.com> <6442cf200b9ba3d86e695172c4da98a802bda48e.camel@cybertec.at> <B728C50A-9EF1-4E13-82D8-B6CEAFC51B1F@americanefficient.com> <60ebe24e-33c4-2f56-a3ea-fc85518ecc22@aklaver.com> <cd56aa1b-1797-57c4-aaea-5c58a27bcea7@gmail.com> <3215093.1675796458@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox