Bug #642: Need "Alter table drop column" - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject Bug #642: Need "Alter table drop column"
Date
Msg-id 20020423020215.8DFE0475918@postgresql.org
Whole thread Raw
List pgsql-bugs
Richard Neill (richard-n@richardneill.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
havebeen better requires a complete copy of the table to be made via select into. This also breaks sequences, and
primarykeys.  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

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #641: LIBPQ Linking with the static library on the WIN32 platform fails connections with "unknown host name".
Next
From: Jean-Paul ARGUDO
Date:
Subject: cvs update, configure, make, error in bootstrap.* ?...