Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id C89F39FB212 for ; Tue, 29 May 2007 18:17:05 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 27051-06 for ; Tue, 29 May 2007 18:17:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 66C0D9FB200 for ; Tue, 29 May 2007 18:17:02 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l4TLGx6W017812; Tue, 29 May 2007 17:16:59 -0400 (EDT) To: kadams@mxlogic.com cc: pgsql-admin@postgresql.org Subject: Re: ALTER TABLE - ALTER COLUMN question In-reply-to: <1180471333.19986.13.camel@MXLRMT-208.corp.mxlogic.com> References: <1180471333.19986.13.camel@MXLRMT-208.corp.mxlogic.com> Comments: In-reply-to Keaton Adams message dated "Tue, 29 May 2007 14:42:13 -0600" Date: Tue, 29 May 2007 17:16:59 -0400 Message-ID: <17811.1180473419@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/308 X-Sequence-Number: 25628 Keaton Adams writes: > In this example the created and msg_datetime columns are currently > defined as TIMESTAMP WITHOUT TIME ZONE and no default. If the alter > table for these changes is not in-place then I would want to run it as a > single alter with all of the changes, such as this, instead of > individual alters for each change, correct? (Because each individual > alter would require another table copy?) That's why ALTER TABLE has the ability to do more than one thing in parallel ... regards, tom lane