Re: adding a primary key column to a temporary table fails

Поиск
Список
Период
Сортировка
От Frank van Vugt
Тема Re: adding a primary key column to a temporary table fails
Дата
Msg-id 200407221618.31906.ftm.van.vugt@foxi.nl
обсуждение исходный текст
Ответ на Re: adding a primary key column to a temporary table fails  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-bugs
> The issue here is the not-nullness of a new column which isn't supported
> in 7.4 (it appears to be in 7.5).

I grok.

> > By the way, I noticed that the todo-list does not mention 'alter table
> > alter column set/drop primary key'. I'm wondering whether it should?
>
> ALTER TABLE ADD CONSTRAINT can handle primary keys.

Now how did I miss *that* ;-\

> I think you probably want:
> alter table f_test add primary key (id);

Yep, that does the trick.


Thank!




--
Best,




Frank.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: adding a primary key column to a temporary table fails
Следующее
От: Luke McFarlane
Дата:
Сообщение: Re: ecpg -D SYMBOL