pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ravi Krishna <srkrishna@yahoo.com>
Cc: pgsql-generallists.postgresql.org pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: explain plan difference
Date: Mon, 04 Nov 2019 09:45:26 -0500
Message-ID: <5191.1572878726@sss.pgh.pa.us> (raw)
In-Reply-To: <F724132B-7687-46BC-95F1-1C044B4A7561@yahoo.com>
References: <CAKE1AiYdwjx_Wq07vE=uwHeDHa8cL35iD_GyqHrKfJ3WihHBkg@mail.gmail.com>
	<14145.1572840079@sss.pgh.pa.us>
	<CAKE1AiZgvj4TbgSaaCgaUMkHUeKxQ5W9u0G3SobihG-ts0ovxg@mail.gmail.com>
	<46D43737-F971-440D-AB13-8EDBB89E91C1@yahoo.com>
	<32632.1572877563@sss.pgh.pa.us>
	<F724132B-7687-46BC-95F1-1C044B4A7561@yahoo.com>

Ravi Krishna <srkrishna@yahoo.com> writes:
>> VACUUM would not change the state of the dropped columns.

> When does it change?

Never, unless you drop and recreate the table.  Removing a dropped
column would change the attnums of following columns, which we
can't support because the tableoid+attnum is the only persistent
identifier of a column.

(From memory, operations like VACUUM FULL and CLUSTER will rewrite
dropped columns with NULLs to reduce their storage impact.  But they
don't go away.)

			regards, tom lane





view thread (8+ messages)  latest in thread

Message-ID: <5191.1572878726@sss.pgh.pa.us>
Permalink:  ../5191.1572878726@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5191.1572878726@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, srkrishna@yahoo.com
  Subject: Re: explain plan difference
  In-Reply-To: <5191.1572878726@sss.pgh.pa.us>
  References: <CAKE1AiYdwjx_Wq07vE=uwHeDHa8cL35iD_GyqHrKfJ3WihHBkg@mail.gmail.com> <14145.1572840079@sss.pgh.pa.us> <CAKE1AiZgvj4TbgSaaCgaUMkHUeKxQ5W9u0G3SobihG-ts0ovxg@mail.gmail.com> <46D43737-F971-440D-AB13-8EDBB89E91C1@yahoo.com> <32632.1572877563@sss.pgh.pa.us> <F724132B-7687-46BC-95F1-1C044B4A7561@yahoo.com> <5191.1572878726@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