Re: [HACKERS] Well, then you keep your darn columns

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: The Hermit Hacker <scrappy(at)hub(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] Well, then you keep your darn columns
Date: 2000-01-24 20:37:02
Message-ID: 200001242037.PAA16128@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > The only drawback of this scheme is that the space occupied by the
> > deleted column wouldn't go away immediately (in any given tuple,
> > it'd be reclaimed on the next UPDATE of the tuple). On the other hand,
> > you could construe that as a feature --- you don't have to wait around
> > for a DROP COLUMN to finish. Anyone who did want to reclaim space
> > immediately could do
> > UPDATE table SET someothercolumn = someothercolumn;
> > followed by a VACUUM. But I bet a lot of people would be just as
> > happy to let it happen in background.
>
> Hey Bruce ... Look here ^^^^ :)
>
> Oh, there is a second drawback to it though ...
>
> DROP COLUMN name
> ADD COLUMN name <of a different type>
>
> Then what? :(

Double-yikes. There goes that idea, or does it? Attributes are
numbered. How does a missing attribute get handled for new rows?
My guess is that we have to keep this thing around forever. Can you
imagine having all those user apps tha query pg_attribute supress that
column. Sound like too much work to me.

--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ansley, Michael 2000-01-24 21:39:27 RE: [HACKERS] Well, then you keep your darn columns
Previous Message Don Baccus 2000-01-24 20:29:48 Re: [HACKERS] Well, then you keep your darn columns