Bug #642: Need "Alter table drop column"

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #642: Need "Alter table drop column"
Date: 2002-04-23 02:02:15
Message-ID: 20020423020215.8DFE0475918@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Richard Neill (richard-n(at)richardneill(dot)org) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
Need "Alter table drop column"

Long Description
Please can we have the option of "Alter table drop column "?

Otherwise, correcting a simple mistake of setting up a column as varchar 50 and discovering later that varchar 70 would have been better requires a complete copy of the table to be made via select into. This also breaks sequences, and primary keys. The obvious workaround is alter table add column new, update table set new=old, alter table drop column old, alter table column new rename to old. But the 3rd step can't be done!

Sample Code

No file was uploaded with this report

Browse pgsql-bugs by date

  From Date Subject
Next Message martin tan 2002-04-23 08:05:30 help!
Previous Message pgsql-bugs 2002-04-22 20:57:50 Bug #641: LIBPQ Linking with the static library on the WIN32 platform fails connections with "unknown host name".