Skip to content

Commit 7b156c1

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 f92d6a5 commit 7b156c1

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
@@ -15277,13 +15277,12 @@ dumpEventTrigger(Archive *fout, DumpOptions *dopt, EventTriggerInfo *evtinfo)
1527715277
appendPQExpBufferStr(query, fmtId(evtinfo->dobj.name));
1527815278
appendPQExpBufferStr(query, " ON ");
1527915279
appendPQExpBufferStr(query, fmtId(evtinfo->evtevent));
15280-
appendPQExpBufferStr(query, " ");
1528115280

1528215281
if (strcmp("", evtinfo->evttags) != 0)
1528315282
{
1528415283
appendPQExpBufferStr(query, "\n WHEN TAG IN (");
1528515284
appendPQExpBufferStr(query, evtinfo->evttags);
15286-
appendPQExpBufferStr(query, ") ");
15285+
appendPQExpBufferChar(query, ')');
1528715286
}
1528815287

1528915288
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