Skip to content

Commit df43fcf

Browse files
committed
pg_dump: Fix quoting of domain constraint names
The original code was adding double quotes to an already-quoted identifier, leading to nonsensical results. Remove the quoting call. I introduced the broken code in 7eca575 of 9.5 era, so backpatch to 9.5. Report and patch by Elvis Pranskevichus Reviewed by Michael Paquier
1 parent e1bd684 commit df43fcf

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
@@ -9611,7 +9611,7 @@ dumpDomain(Archive *fout, TypeInfo *tyinfo)
96119611
appendPQExpBuffer(labelq, "CONSTRAINT %s ",
96129612
fmtId(domcheck->dobj.name));
96139613
appendPQExpBuffer(labelq, "ON DOMAIN %s",
9614-
fmtId(qtypname));
9614+
qtypname);
96159615
dumpComment(fout, labelq->data,
96169616
tyinfo->dobj.namespace->dobj.name,
96179617
tyinfo->rolname,

0 commit comments

Comments
 (0)