summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-02 12:50:29 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-02 12:53:05 +0300
commit52fc303e640c328b9634866b88cf2528f2732d16 (patch)
tree5c9f7c90663efd9044a2218bd61d8eb6edae4949 /src
parentcfd4876f174b70129626346c4991ebf5f61ebc6a (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/pg_dump.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 59349932902..b6771000371 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -14343,13 +14343,12 @@ dumpEventTrigger(Archive *fout, EventTriggerInfo *evtinfo)
appendPQExpBufferStr(query, fmtId(evtinfo->dobj.name));
appendPQExpBuffer(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, ')');
}
appendPQExpBuffer(query, "\n EXECUTE PROCEDURE ");