Re: cataloguing NOT NULL constraints - Mailing list pgsql-hackers

From Vik Fearing
Subject Re: cataloguing NOT NULL constraints
Date
Msg-id ca44cc48-786d-d64e-d202-69106c6de85b@postgresfriends.org
Whole thread Raw
In response to Re: cataloguing NOT NULL constraints  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: cataloguing NOT NULL constraints
Next
From: Pierre Ducroquet
Date:
Subject: Re: Inefficiency in parallel pg_restore with many tables