mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-05 23:59:20 +02:00
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.
This commit is contained in:
parent
02ec4cd179
commit
bcac470d5b
@ -15277,13 +15277,12 @@ dumpEventTrigger(Archive *fout, DumpOptions *dopt, EventTriggerInfo *evtinfo)
|
||||
appendPQExpBufferStr(query, fmtId(evtinfo->dobj.name));
|
||||
appendPQExpBufferStr(query, " ON ");
|
||||
appendPQExpBufferStr(query, fmtId(evtinfo->evtevent));
|
||||
appendPQExpBufferStr(query, " ");
|
||||
|
||||
if (strcmp("", evtinfo->evttags) != 0)
|
||||
{
|
||||
appendPQExpBufferStr(query, "\n WHEN TAG IN (");
|
||||
appendPQExpBufferStr(query, evtinfo->evttags);
|
||||
appendPQExpBufferStr(query, ") ");
|
||||
appendPQExpBufferChar(query, ')');
|
||||
}
|
||||
|
||||
appendPQExpBufferStr(query, "\n EXECUTE PROCEDURE ");
|
||||
|
Loading…
Reference in New Issue
Block a user