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)
commit6b755d8d70b2ceffeb4798cbb6907d2704c2e6c4
tree0ffa0ca69e1d0503223a8cfb44057cb3fc31eb75
parent227d0ce18af90f89a9e886ddbc0bb8aaf2ec2750
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