Re: ALTER TABLE - ALTER COLUMN question - Mailing list pgsql-admin

From Tom Lane
Subject Re: ALTER TABLE - ALTER COLUMN question
Date
Msg-id 17811.1180473419@sss.pgh.pa.us
Whole thread Raw
In response to ALTER TABLE - ALTER COLUMN question  (Keaton Adams <kadams@mxlogic.com>)
Responses Re: ALTER TABLE - ALTER COLUMN question  (Keaton Adams <kadams@mxlogic.com>)
List pgsql-admin
Keaton Adams <kadams@mxlogic.com> 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

pgsql-admin by date:

Previous
From: Keaton Adams
Date:
Subject: ALTER TABLE - ALTER COLUMN question
Next
From: Keaton Adams
Date:
Subject: Re: ALTER TABLE - ALTER COLUMN question