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)
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