Commit 7b156c1e authored by Heikki Linnakangas's avatar Heikki Linnakangas

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.
parent f92d6a54
...@@ -15277,13 +15277,12 @@ dumpEventTrigger(Archive *fout, DumpOptions *dopt, EventTriggerInfo *evtinfo) ...@@ -15277,13 +15277,12 @@ dumpEventTrigger(Archive *fout, DumpOptions *dopt, EventTriggerInfo *evtinfo)
appendPQExpBufferStr(query, fmtId(evtinfo->dobj.name)); appendPQExpBufferStr(query, fmtId(evtinfo->dobj.name));
appendPQExpBufferStr(query, " ON "); appendPQExpBufferStr(query, " ON ");
appendPQExpBufferStr(query, fmtId(evtinfo->evtevent)); appendPQExpBufferStr(query, fmtId(evtinfo->evtevent));
appendPQExpBufferStr(query, " ");
if (strcmp("", evtinfo->evttags) != 0) if (strcmp("", evtinfo->evttags) != 0)
{ {
appendPQExpBufferStr(query, "\n WHEN TAG IN ("); appendPQExpBufferStr(query, "\n WHEN TAG IN (");
appendPQExpBufferStr(query, evtinfo->evttags); appendPQExpBufferStr(query, evtinfo->evttags);
appendPQExpBufferStr(query, ") "); appendPQExpBufferChar(query, ')');
} }
appendPQExpBufferStr(query, "\n EXECUTE PROCEDURE "); appendPQExpBufferStr(query, "\n EXECUTE PROCEDURE ");
......
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