mirror of
https://github.com/postgres/postgres.git
synced 2026-02-25 19:02:00 -05:00
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.
This commit is contained in:
parent
51742063be
commit
c99e41f686
1 changed files with 2 additions and 2 deletions
|
|
@ -14769,7 +14769,7 @@ dumpEventTrigger(Archive *fout, EventTriggerInfo *evtinfo)
|
|||
}
|
||||
appendPQExpBufferStr(query, ";\n");
|
||||
}
|
||||
appendPQExpBuffer(labelq, "EVENT TRIGGER %s ",
|
||||
appendPQExpBuffer(labelq, "EVENT TRIGGER %s",
|
||||
fmtId(evtinfo->dobj.name));
|
||||
|
||||
ArchiveEntry(fout, evtinfo->dobj.catId, evtinfo->dobj.dumpId,
|
||||
|
|
@ -14778,7 +14778,7 @@ dumpEventTrigger(Archive *fout, EventTriggerInfo *evtinfo)
|
|||
query->data, "", NULL, NULL, 0, NULL, NULL);
|
||||
|
||||
dumpComment(fout, labelq->data,
|
||||
NULL, NULL,
|
||||
NULL, evtinfo->evtowner,
|
||||
evtinfo->dobj.catId, 0, evtinfo->dobj.dumpId);
|
||||
|
||||
destroyPQExpBuffer(query);
|
||||
|
|
|
|||
Loading…
Reference in a new issue