Re: Can't find not null constraint, but \d+ shows that - Mailing list pgsql-hackers

From jian he
Subject Re: Can't find not null constraint, but \d+ shows that
Date
Msg-id CACJufxEfc0obH8Aw2AExudy1g5s08e1aFgEJ_KbeZw0NhYeSOw@mail.gmail.com
Whole thread Raw
In response to Re: Can't find not null constraint, but \d+ shows that  (Tender Wang <tndrwang@gmail.com>)
Responses Re: Can't find not null constraint, but \d+ shows that
Re: Can't find not null constraint, but \d+ shows that
List pgsql-hackers

another related bug, in master.

drop table if exists notnull_tbl1;
CREATE TABLE notnull_tbl1 (c0 int not null, c1 int);
ALTER TABLE notnull_tbl1 ADD CONSTRAINT Q PRIMARY KEY(c0, c1);
\d+ notnull_tbl1
ALTER TABLE notnull_tbl1 ALTER c0 DROP NOT NULL;
ALTER TABLE notnull_tbl1 ALTER c1 DROP NOT NULL;

"ALTER TABLE notnull_tbl1 ALTER c0 DROP NOT NULL;"
should fail?

I didn't investigate deep enough.

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Speed up clean meson builds by ~25%
Next
From: Richard Guo
Date:
Subject: Re: Eager aggregation, take 3