Catalog domain not-null constraints

This applies the explicit catalog representation of not-null
constraints introduced by b0e96f3119 for table constraints also to
domain not-null constraints.

Reviewed-by: Aleksander Alekseev <aleksan...@timescale.com>
Reviewed-by: jian he <jian.universal...@gmail.com>
Discussion: 
https://www.postgresql.org/message-id/flat/9ec24d7b-633d-463a-84c6-7acff769c9e8%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e5da0fe3c22b34c4433f1729e88495554b5331ed

Modified Files
--------------
src/backend/catalog/information_schema.sql |   2 +-
src/backend/catalog/pg_constraint.c        |  44 ++++
src/backend/commands/typecmds.c            | 335 +++++++++++++++++++++--------
src/backend/utils/adt/ruleutils.c          |  22 +-
src/backend/utils/cache/typcache.c         |   2 +-
src/bin/pg_dump/pg_dump.c                  |   2 +-
src/include/catalog/catversion.h           |   2 +-
src/include/catalog/pg_constraint.h        |   1 +
src/test/regress/expected/domain.out       |  62 ++++--
src/test/regress/sql/domain.sql            |  29 +++
10 files changed, 386 insertions(+), 115 deletions(-)

Reply via email to