diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-01-22 20:04:35 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-01-22 20:04:35 -0300 |
commit | 1e910cf5baf35721b1d889bd3e976e49e0694857 (patch) | |
tree | 0d01f9bee66226c6161d226bf240e83254a33d63 | |
parent | 042a3e2353e366cc1e571078fd92c7365fe12d46 (diff) | |
download | postgresql-1e910cf5baf35721b1d889bd3e976e49e0694857.tar.gz postgresql-1e910cf5baf35721b1d889bd3e976e49e0694857.zip |
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
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 020a982712c..c58ce6aff3a 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -9592,7 +9592,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, |