Altering a table - positioning new columns

From: "Chris Boget" <chris(at)wild(dot)net>
To: "PGSql General" <pgsql-general(at)postgresql(dot)org>
Subject: Altering a table - positioning new columns
Date: 2003-01-20 13:24:57
Message-ID: 023c01c2c087$53a5d4d0$8c01a8c0@ENTROPY
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In MySQL, when adding a new column to a table, you could
position it relative to another column already in the DB. IOW,
you could do something like this:

ALTER TABLE blah ADD COLUMN newcol AFTER anothercol.

Is something like this possible in PG? Or are _all_ new columns
added to the end of the column list?
I've searched through the docs and couldn't find that this was
possible and some tests have come up with errors. That said,
I'm still new enough to where I can't be sure I'm doing it the right
way for PG and am hoping one of you guys can give me a
definitive yes or no.

thnx,
Chris

Responses

Browse pgsql-general by date

  From Date Subject
Next Message kanchana 2003-01-20 13:45:37 Re: Fw: configure error with krb5
Previous Message Pablo Yaggi 2003-01-20 13:23:49 Re: Transaction progress