projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfd4876
)
Don't emit a spurious space at end of line in pg_dump of event triggers.
author
Heikki Linnakangas
<
[email protected]
>
Thu, 2 Jul 2015 09:50:29 +0000
(12:50 +0300)
committer
Heikki Linnakangas
<
[email protected]
>
Thu, 2 Jul 2015 09:53:05 +0000
(12:53 +0300)
Backpatch to 9.3 and above, where event triggers were added.
src/bin/pg_dump/pg_dump.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_dump/pg_dump.c
b/src/bin/pg_dump/pg_dump.c
index 5934993290231b3c17623909fbb028f6a40b53cf..b6771000371e951a562b3a6afec0883d3fc70ef4 100644
(file)
--- 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);
- appendPQExpBuffer
Str(query, ") "
);
+ appendPQExpBuffer
Char(query, ')'
);
}
appendPQExpBuffer(query, "\n EXECUTE PROCEDURE ");