Re: Column ordering - Mailing list pgsql-general

From brian
Subject Re: Column ordering
Date
Msg-id 46E57A61.10308@zijn-digital.com
Whole thread Raw
In response to Column ordering  ("Ashish Karalkar" <ashish.karalkar@info-spectrum.com>)
List pgsql-general
Ashish Karalkar wrote:
> Hello All,
>
> I am having a table with  5 columns.
> I want to add another column by altering the table at 2nd position
> constraint is that I can not drop and recreate the table as column
> ordering is of importance.
> Is there anyway to do so.

Copy everything into a tmp table, drop the original, recreate it with
the new column in the correct position, and move the data back into it.

brian

pgsql-general by date:

Previous
From: "Ashish Karalkar"
Date:
Subject: Column ordering
Next
From: "Ashish Karalkar"
Date:
Subject: Column Ordering