Re: ALTER TABLE DROP COLUMN - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: ALTER TABLE DROP COLUMN
Date
Msg-id 200010092035.QAA01665@candle.pha.pa.us
Whole thread Raw
In response to Re: ALTER TABLE DROP COLUMN  (The Hermit Hacker <scrappy@hub.org>)
Responses Re: ALTER TABLE DROP COLUMN  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
> On Mon, 9 Oct 2000, Tom Lane wrote:
> 
> > The Hermit Hacker <scrappy@hub.org> writes:
> > >> What happens if you crash partway through?
> > 
> > > what happens if you crash partway through a vacuum?
> > 
> > Nothing.  Vacuum is crash-safe.  ALTER TABLE should be too.
> 
> Sorry, that's what I meant ... why should marking a column as 'deleted'
> and running a 'vacuum' to clean up the physical table be any less
> crash-safe?  

It is not.  The only downside is 2x disk space to make new versions of
the tuple.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: ALTER TABLE DROP COLUMN
Next
From: Bruce Momjian
Date:
Subject: Re: OSF/1/Digital UNIX/Tru64 UNIX spinlock code