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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy