pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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






view thread (3+ messages)  latest in thread

Message-ID: <20200908094917.GA11563@depesz.com>
Permalink:  ../20200908094917.GA11563@depesz.com/
Also on:    postgresql.org/message-id/20200908094917.GA11563@depesz.com

 · 

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: 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