]> git.ipfire.org Git - thirdparty/postgresql.git/commit
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)
commitf9545e95c5e7ead0c19676ef8c966eb21f573954
treef5a44f7875095c5a258f82539f48757526b1fdc9
parent6cf5b10ce96c0aa24ce2129fcc7b53fc836608e5
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