Skip to content

Commit 0eaa49a

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 505f78c commit 0eaa49a

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
@@ -14680,13 +14680,12 @@ dumpEventTrigger(Archive *fout, EventTriggerInfo *evtinfo)
1468014680
appendPQExpBufferStr(query, fmtId(evtinfo->dobj.name));
1468114681
appendPQExpBufferStr(query, " ON ");
1468214682
appendPQExpBufferStr(query, fmtId(evtinfo->evtevent));
14683-
appendPQExpBufferStr(query, " ");
1468414683

1468514684
if (strcmp("", evtinfo->evttags) != 0)
1468614685
{
1468714686
appendPQExpBufferStr(query, "\n WHEN TAG IN (");
1468814687
appendPQExpBufferStr(query, evtinfo->evttags);
14689-
appendPQExpBufferStr(query, ") ");
14688+
appendPQExpBufferChar(query, ')');
1469014689
}
1469114690

1469214691
appendPQExpBufferStr(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