Skip to content

Commit adfc157

Browse files
committed
Fix broken pg_dump code for dumping comments on event triggers.
This never worked, I think. Per report from Marc Munro. In passing, fix funny spacing in the COMMENT ON command as a result of excess space in the "label" string.
1 parent 3c9e4cd commit adfc157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15097,7 +15097,7 @@ dumpEventTrigger(Archive *fout, DumpOptions *dopt, EventTriggerInfo *evtinfo)
1509715097
}
1509815098
appendPQExpBufferStr(query, ";\n");
1509915099
}
15100-
appendPQExpBuffer(labelq, "EVENT TRIGGER %s ",
15100+
appendPQExpBuffer(labelq, "EVENT TRIGGER %s",
1510115101
fmtId(evtinfo->dobj.name));
1510215102

1510315103
ArchiveEntry(fout, evtinfo->dobj.catId, evtinfo->dobj.dumpId,
@@ -15106,7 +15106,7 @@ dumpEventTrigger(Archive *fout, DumpOptions *dopt, EventTriggerInfo *evtinfo)
1510615106
query->data, "", NULL, NULL, 0, NULL, NULL);
1510715107

1510815108
dumpComment(fout, dopt, labelq->data,
15109-
NULL, NULL,
15109+
NULL, evtinfo->evtowner,
1511015110
evtinfo->dobj.catId, 0, evtinfo->dobj.dumpId);
1511115111

1511215112
destroyPQExpBuffer(query);

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