Commit adfc157d authored by Tom Lane's avatar Tom Lane

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.
parent 3c9e4cdb
...@@ -15097,7 +15097,7 @@ dumpEventTrigger(Archive *fout, DumpOptions *dopt, EventTriggerInfo *evtinfo) ...@@ -15097,7 +15097,7 @@ dumpEventTrigger(Archive *fout, DumpOptions *dopt, EventTriggerInfo *evtinfo)
} }
appendPQExpBufferStr(query, ";\n"); appendPQExpBufferStr(query, ";\n");
} }
appendPQExpBuffer(labelq, "EVENT TRIGGER %s ", appendPQExpBuffer(labelq, "EVENT TRIGGER %s",
fmtId(evtinfo->dobj.name)); fmtId(evtinfo->dobj.name));
ArchiveEntry(fout, evtinfo->dobj.catId, evtinfo->dobj.dumpId, ArchiveEntry(fout, evtinfo->dobj.catId, evtinfo->dobj.dumpId,
...@@ -15106,7 +15106,7 @@ dumpEventTrigger(Archive *fout, DumpOptions *dopt, EventTriggerInfo *evtinfo) ...@@ -15106,7 +15106,7 @@ dumpEventTrigger(Archive *fout, DumpOptions *dopt, EventTriggerInfo *evtinfo)
query->data, "", NULL, NULL, 0, NULL, NULL); query->data, "", NULL, NULL, 0, NULL, NULL);
dumpComment(fout, dopt, labelq->data, dumpComment(fout, dopt, labelq->data,
NULL, NULL, NULL, evtinfo->evtowner,
evtinfo->dobj.catId, 0, evtinfo->dobj.dumpId); evtinfo->dobj.catId, 0, evtinfo->dobj.dumpId);
destroyPQExpBuffer(query); destroyPQExpBuffer(query);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment