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.