pgsql: Prevent creation of duplicate not-null constraints for domains - Mailing list pgsql-committers

From Álvaro Herrera
Subject pgsql: Prevent creation of duplicate not-null constraints for domains
Date
Msg-id E1uXGWy-004Uq8-03@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Prevent creation of duplicate not-null constraints for domains

This was previously harmless, but now that we create pg_constraint rows
for those, duplicates are not welcome anymore.

Backpatch to 18.

Co-authored-by: jian he <jian.universality@gmail.com>
Co-authored-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/CACJufxFSC0mcQ82bSk58sO-WJY4P-o4N6RD2M0D=DD_u_6EzdQ@mail.gmail.com

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8af310b331940ff5efd19402a3f8ee5521eb821a

Modified Files
--------------
src/backend/commands/typecmds.c      | 14 +++++++++++---
src/test/regress/expected/domain.out |  5 +++++
src/test/regress/sql/domain.sql      |  3 +++
3 files changed, 19 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Refactor subtype field of AlterDomainStmt
Next
From: Fujii Masao
Date:
Subject: pgsql: doc: Update outdated descriptions of wal_status in pg_replicatio