Don't emit a spurious space at end of line in pg_dump of event triggers.

Backpatch to 9.3 and above, where event triggers were added.
This commit is contained in:
Heikki Linnakangas 2015-07-02 12:50:29 +03:00
parent 505f78c446
commit 0eaa49a5c4

View File

@ -14680,13 +14680,12 @@ dumpEventTrigger(Archive *fout, EventTriggerInfo *evtinfo)
appendPQExpBufferStr(query, fmtId(evtinfo->dobj.name));
appendPQExpBufferStr(query, " ON ");
appendPQExpBufferStr(query, fmtId(evtinfo->evtevent));
appendPQExpBufferStr(query, " ");
if (strcmp("", evtinfo->evttags) != 0)
{
appendPQExpBufferStr(query, "\n WHEN TAG IN (");
appendPQExpBufferStr(query, evtinfo->evttags);
appendPQExpBufferStr(query, ") ");
appendPQExpBufferChar(query, ')');
}
appendPQExpBufferStr(query, "\n EXECUTE PROCEDURE ");