pgsql: Fix pg_dump COMMENT dependency for separate domain constraints.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix pg_dump COMMENT dependency for separate domain constraints.
Date: 2025-09-16 16:42:28
Message-ID: E1uyYlA-0011vI-1K@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)kurilemu(dot)de>
Discussion: https://postgr.es/m/20250913020233.fa.nmisch@google.com
Backpatch-through: 13

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c044b50d199cf592eba2ac84f48cf0fcb5fb65f8

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2025-09-16 16:42:29 pgsql: Fix pg_dump COMMENT dependency for separate domain constraints.
Previous Message Tom Lane 2025-09-16 16:17:23 pgsql: Provide more-specific error details/hints for function lookup fa