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:29
Message-ID: E1uyYlA-0011vP-1Z@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
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3cf328eca84a638ff8178dd85a980dbac3e39ae3

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 Tom Lane 2025-09-16 17:06:04 pgsql: Revert "Avoid race condition between "GRANT role" and "DROP ROLE
Previous Message Noah Misch 2025-09-16 16:42:28 pgsql: Fix pg_dump COMMENT dependency for separate domain constraints.