Fix pg_dump COMMENT dependency for separate domain constraints.

Noah Misch <noah@leadboat.com>

Commit: c044b50d199cf592eba2ac84f48cf0fcb5fb65f8
Author: Noah Misch <noah@leadboat.com>
Date: 2025-09-16T16:40:44Z
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

Files

PathChange+/−
src/bin/pg_dump/pg_dump.c modified +1 −1

Discussion