Bug #642: Need "Alter table drop column"

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема Bug #642: Need "Alter table drop column"
Дата
Msg-id 20020423020215.8DFE0475918@postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #641: LIBPQ Linking with the static library on the WIN32 platform fails connections with "unknown host name".
Следующее
От: Jean-Paul ARGUDO
Дата:
Сообщение: cvs update, configure, make, error in bootstrap.* ?...