From: hubert depesz lubaczewski <depesz@depesz.com>
To: ZongtianHou <zongtianhou@icloud.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: how to clean dropped column in pg_attribute
Date: Tue, 8 Sep 2020 11:49:17 +0200
Message-ID: <20200908094917.GA11563@depesz.com> (raw)
In-Reply-To: <86FE93ED-B4E9-4907-8E5C-FB8A566115E7@icloud.com>
References: <86FE93ED-B4E9-4907-8E5C-FB8A566115E7@icloud.com>
On Tue, Sep 08, 2020 at 05:38:24PM +0800, ZongtianHou wrote:
> I found dropped columns still exist in pg_attribute table. In the
> below example I drop c2 column and vacuum (full) this table and
> pg_attribute, it still exist (the last row). how can I clean it away?
Unfortunately only by copying the table aside, and then renaming new
table.
But - the dropped attribute will not sure any disk space, as long as you
ran some vacuums.
Best regards,
depesz
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: depesz@depesz.com, zongtianhou@icloud.com
Subject: Re: how to clean dropped column in pg_attribute
In-Reply-To: <20200908094917.GA11563@depesz.com>
* 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