Skip to content

Commit 1e910cf

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 042a3e2 commit 1e910cf

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
@@ -9592,7 +9592,7 @@ dumpDomain(Archive *fout, TypeInfo *tyinfo)
95929592
appendPQExpBuffer(labelq, "CONSTRAINT %s ",
95939593
fmtId(domcheck->dobj.name));
95949594
appendPQExpBuffer(labelq, "ON DOMAIN %s",
9595-
fmtId(qtypname));
9595+
qtypname);
95969596
dumpComment(fout, labelq->data,
95979597
tyinfo->dobj.namespace->dobj.name,
95989598
tyinfo->rolname,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy