pgsql: Catalog domain not-null constraints

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Catalog domain not-null constraints
Date: 2024-03-20 09:20:09
Message-ID: E1rms7F-004kCT-C0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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 <aleksander(at)timescale(dot)com>
Reviewed-by: jian he <jian(dot)universality(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2024-03-20 11:28:04 pgsql: Rework lwlocknames.txt to become lwlocklist.h
Previous Message Heikki Linnakangas 2024-03-20 08:14:25 pgsql: Reorganize heap_page_prune() function comment