Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 52fc303

Browse files
committed
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.
1 parent cfd4876 commit 52fc303

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14343,13 +14343,12 @@ dumpEventTrigger(Archive *fout, EventTriggerInfo *evtinfo)
1434314343
appendPQExpBufferStr(query, fmtId(evtinfo->dobj.name));
1434414344
appendPQExpBuffer(query, " ON ");
1434514345
appendPQExpBufferStr(query, fmtId(evtinfo->evtevent));
14346-
appendPQExpBufferStr(query, " ");
1434714346

1434814347
if (strcmp("", evtinfo->evttags) != 0)
1434914348
{
1435014349
appendPQExpBufferStr(query, "\n WHEN TAG IN (");
1435114350
appendPQExpBufferStr(query, evtinfo->evttags);
14352-
appendPQExpBufferStr(query, ") ");
14351+
appendPQExpBufferChar(query, ')');
1435314352
}
1435414353

1435514354
appendPQExpBuffer(query, "\n EXECUTE PROCEDURE ");

0 commit comments

Comments
 (0)