Fix pg_dump COMMENT dependency for separate domain constraints.
authorNoah Misch <noah@leadboat.com>
Tue, 16 Sep 2025 16:40:44 +0000 (09:40 -0700)
committerNoah Misch <noah@leadboat.com>
Tue, 16 Sep 2025 16:40:48 +0000 (09:40 -0700)
commit4ad846445dd0a1596ca7bfeb5b2ea93f6d7a751d
treeda224bacb17165299eb12355cdd47d6f09907dba
parentdad1e259dfa95edd07bf9a890fbb103dc35057ce
Fix pg_dump COMMENT dependency for separate domain constraints.

The COMMENT should depend on the separately-dumped constraint, not the
domain.  Sufficient restore parallelism might fail the COMMENT command
by issuing it before the constraint exists.  Back-patch to v13, like
commit 0858f0f96ebb891c8960994f023ed5a17b758a38.

Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/20250913020233.fa.nmisch@google.com
Backpatch-through: 13
src/bin/pg_dump/pg_dump.c