pg_dump: include comments on not-null constraints on domains, too
authorÁlvaro Herrera <alvherre@kurilemu.de>
Mon, 21 Jul 2025 09:34:10 +0000 (11:34 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Mon, 21 Jul 2025 09:34:10 +0000 (11:34 +0200)
commitda71717f0a7cf905a6a31ffd34552554922a0374
treefd40875d6f84924a092d3480a44c3d6e1066c9f8
parentcb937e48f01fa710d084694de8cc556223ba0967
pg_dump: include comments on not-null constraints on domains, too

Commit e5da0fe3c22b introduced catalog entries for not-null constraints
on domains; but because commit b0e96f311985 (the original work for
catalogued not-null constraints on tables) forgot to teach pg_dump to
process the comments for them, this one also forgot.  Add that now.

We also need to teach repairDependencyLoop() about the new type of
constraints being possible for domains.

Backpatch-through: 17
Co-authored-by: jian he <jian.universality@gmail.com>
Co-authored-by: Álvaro Herrera <alvherre@kurilemu.de>
Reported-by: jian he <jian.universality@gmail.com>
Discussion: https://postgr.es/m/CACJufxF-0bqVR=j4jonS6N2Ka6hHUpFyu3_3TWKNhOW_4yFSSg@mail.gmail.com
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h
src/bin/pg_dump/pg_dump_sort.c
src/bin/pg_dump/t/002_pg_dump.pl