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

From Chris
Subject Re: AW: ALTER TABLE DROP COLUMN
Date
Msg-id 39EABD9A.3C0DBD2E@bitmead.com
Whole thread Raw
In response to RE: AW: ALTER TABLE DROP COLUMN  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
List pgsql-hackers
Hiroshi Inoue wrote:

> Certainly it would need 2x.
> However is ADD COLUMN DEFAULT really needed ?
> I would do as follows.
> 
>     ADD COLUMN (without default)
>     UPDATE .. SET new_column = new default
>     ALTER TABLE ALTER COLUMN SET DEFAULT

Well in current postgres that would use 2x. With WAL I presume that
would use a lot of log space and probably a lot more processing. But if
you can do the above you might as well support the right syntax.


pgsql-hackers by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: AW: ALTER TABLE DROP COLUMN
Next
From: Hiroshi Inoue
Date:
Subject: Re: AW: ALTER TABLE DROP COLUMN