postgres.git / summary / log / commit / refs

commit    df43fcf4575cf77d85f4c4dcc096661905a6eb33
Author:   Alvaro Herrera <alvherre@alvh.no-ip.org>
Date:     Fri Jan 22 23:04:35 2016 +0000
First released in: 9.6.0, 9.5.1

    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


src/bin/pg_dump/pg_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 9c6f88540e3..de1ece17c0c 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -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, [parent: e1bd684a34c1]