mirror of
https://github.com/postgres/postgres.git
synced 2026-02-20 00:10:16 -05:00
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 7eca575d1c of 9.5 era, so backpatch to
9.5.
Report and patch by Elvis Pranskevichus
Reviewed by Michael Paquier
This commit is contained in:
parent
e1bd684a34
commit
df43fcf457
1 changed files with 1 additions and 1 deletions
|
|
@ -9611,7 +9611,7 @@ dumpDomain(Archive *fout, TypeInfo *tyinfo)
|
|||
appendPQExpBuffer(labelq, "CONSTRAINT %s ",
|
||||
fmtId(domcheck->dobj.name));
|
||||
appendPQExpBuffer(labelq, "ON DOMAIN %s",
|
||||
fmtId(qtypname));
|
||||
qtypname);
|
||||
dumpComment(fout, labelq->data,
|
||||
tyinfo->dobj.namespace->dobj.name,
|
||||
tyinfo->rolname,
|
||||
|
|
|
|||
Loading…
Reference in a new issue