pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <shammat@gmx.net>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Determine potential change in table size after a column dropped?
Date: Mon, 24 Jan 2022 09:44:12 +0100
Message-ID: <171c51df-da5e-d788-e051-8d5c53cf754b@gmx.net> (raw)
In-Reply-To: <84b61f419a0a5ba1049c7d74a85b6790bfe9e1e9.camel@cybertec.at>
References: <CAOC+FBWMDP4DOPEYMZH6ZS6EzKV8_twSSebGwD2eLUcEK+i4yg@mail.gmail.com>
	<CAM+6J96mtviadpmVVN+GuVkrOYM7UQ=A+p6Frs7xz9pGusYkyA@mail.gmail.com>
	<c9297bfb-409b-d1b9-9aba-e3c3491068e5@gmail.com>
	<CAOC+FBVWoYZS9u1yvAXRa=3fH8gA1m99L+ujAgt4fLf_-kq4ag@mail.gmail.com>
	<84b61f419a0a5ba1049c7d74a85b6790bfe9e1e9.camel@cybertec.at>

Laurenz Albe schrieb am 24.01.2022 um 09:28:
> On Sat, 2022-01-22 at 09:08 -0800, Wells Oliver wrote:
>> I need only drop the column and VACUUM FULL the table, and not the entire DB, right?
>
> Not that VACUUM (FULL) will *not* physically get rid of a dropped column,
> as it just copies the complete rows to a new table.

I always wondered why that is the case.

If the table is rewritten entirely, wouldn't that also be an option to
really get rid of dropped columns?

Is there a technical reason, or just a case of "no one cared enough to change it"?

Regards
Thomas






view thread (14+ messages)  latest in thread

Message-ID: <171c51df-da5e-d788-e051-8d5c53cf754b@gmx.net>
Permalink:  ../171c51df-da5e-d788-e051-8d5c53cf754b@gmx.net/
Also on:    postgresql.org/message-id/171c51df-da5e-d788-e051-8d5c53cf754b@gmx.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: shammat@gmx.net, pgsql-admin@lists.postgresql.org
  Subject: Re: Determine potential change in table size after a column dropped?
  In-Reply-To: <171c51df-da5e-d788-e051-8d5c53cf754b@gmx.net>

* 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