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

From Peter Eisentraut
Subject Re: cataloguing NOT NULL constraints
Date
Msg-id 81b461c4-edab-5d8c-2f88-203108425340@enterprisedb.com
Whole thread Raw
In response to Re: cataloguing NOT NULL constraints  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: cataloguing NOT NULL constraints
List pgsql-hackers
On 27.03.23 15:55, Peter Eisentraut wrote:
> The information schema should be updated.  I think the following views:
> 
> - CHECK_CONSTRAINTS
> - CONSTRAINT_COLUMN_USAGE
> - DOMAIN_CONSTRAINTS
> - TABLE_CONSTRAINTS
> 
> It looks like these have no test coverage; maybe that could be addressed 
> at the same time.

Here are patches for this.  I haven't included the expected files for 
the tests; this should be checked again that output is correct or the 
changes introduced by this patch set are as expected.

The reason we didn't have tests for this before was probably in part 
because the information schema made up names for not-null constraints 
involving OIDs, so the test wouldn't have been stable.

Feel free to integrate this, or we can add it on afterwards.

Attachment

pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: logical decoding and replication of sequences, take 2
Next
From: Peter Eisentraut
Date:
Subject: Re: logical decoding and replication of sequences, take 2