pgsql: Fix pg_dump COMMENT dependency for separate domain constraints. - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Fix pg_dump COMMENT dependency for separate domain constraints.
Date
Msg-id E1uyYlA-0011vX-1j@gemulon.postgresql.org
Whole thread Raw
List 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@kurilemu.de>
Discussion: https://postgr.es/m/20250913020233.fa.nmisch@google.com
Backpatch-through: 13

Branch
------
REL_13_STABLE

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

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


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Fix pg_dump COMMENT dependency for separate domain constraints.
Next
From: Tom Lane
Date:
Subject: pgsql: Revert "Avoid race condition between "GRANT role" and "DROP ROLE