mirror of
https://github.com/postgres/postgres.git
synced 2025-12-03 00:03:16 -05:00
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
This commit is contained in:
parent
83a5641945
commit
c044b50d19
@ -18796,7 +18796,7 @@ dumpConstraint(Archive *fout, const ConstraintInfo *coninfo)
|
||||
dumpComment(fout, conprefix->data, qtypname,
|
||||
tyinfo->dobj.namespace->dobj.name,
|
||||
tyinfo->rolname,
|
||||
coninfo->dobj.catId, 0, tyinfo->dobj.dumpId);
|
||||
coninfo->dobj.catId, 0, coninfo->dobj.dumpId);
|
||||
destroyPQExpBuffer(conprefix);
|
||||
free(qtypname);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user