ALTER TABLE ADD COLUMN can't use NOT NULL?

Поиск
Список
Период
Сортировка
От Bradley McLean
Тема ALTER TABLE ADD COLUMN can't use NOT NULL?
Дата
Msg-id 20011112113205.A5838@bradm.net
обсуждение исходный текст
Ответы Re: ALTER TABLE ADD COLUMN can't use NOT NULL?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: ALTER TABLE ADD COLUMN can't use NOT NULL?  (darcy@druid.net (D'Arcy J.M. Cain))
Список pgsql-hackers
In the CVS tip from this morning:

a123=# alter table test add test1 int4 not null;
ERROR:  Adding NOT NULL columns is not implemented.       Add the column, then use ALTER TABLE ADD CONSTRAINT.
a123=# alter table test add test1 int4 null;
ALTER
a123=#

I'm pretty sure the first one used to work just fine.  Is this
intentional breakage?

-Brad


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Open items
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ALTER TABLE ADD COLUMN can't use NOT NULL?