Re: cataloguing NOT NULL constraints

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема Re: cataloguing NOT NULL constraints
Дата
Msg-id ca44cc48-786d-d64e-d202-69106c6de85b@postgresfriends.org
обсуждение исходный текст
Ответ на Re: cataloguing NOT NULL constraints  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
On 7/24/23 18:42, Alvaro Herrera wrote:
> 55490 17devel 3166154=# create table foo (a int constraint nn not null);
> CREATE TABLE
> 55490 17devel 3166154=# alter table foo add constraint nn not null a;
> ERROR:  column "a" of table "foo" is already NOT NULL

Surely this should be a WARNING or INFO?  I see no reason to ERROR here.
-- 
Vik Fearing




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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: cataloguing NOT NULL constraints
Следующее
От: Pierre Ducroquet
Дата:
Сообщение: Re: Inefficiency in parallel pg_restore with many tables