🌐 AI搜索 & 代理 主页
Skip to content

Commit 4ad8464

Browse files
committed
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 0858f0f. Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de> Discussion: https://postgr.es/m/20250913020233.fa.nmisch@google.com Backpatch-through: 13
1 parent dad1e25 commit 4ad8464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18634,7 +18634,7 @@ dumpConstraint(Archive *fout, const ConstraintInfo *coninfo)
1863418634
dumpComment(fout, conprefix->data, qtypname,
1863518635
tyinfo->dobj.namespace->dobj.name,
1863618636
tyinfo->rolname,
18637-
coninfo->dobj.catId, 0, tyinfo->dobj.dumpId);
18637+
coninfo->dobj.catId, 0, coninfo->dobj.dumpId);
1863818638
destroyPQExpBuffer(conprefix);
1863918639
free(qtypname);
1864018640
}

0 commit comments

Comments
 (0)