mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03: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:
		@@ -14343,13 +14343,12 @@ dumpEventTrigger(Archive *fout, EventTriggerInfo *evtinfo)
 | 
				
			|||||||
	appendPQExpBufferStr(query, fmtId(evtinfo->dobj.name));
 | 
						appendPQExpBufferStr(query, fmtId(evtinfo->dobj.name));
 | 
				
			||||||
	appendPQExpBuffer(query, " ON ");
 | 
						appendPQExpBuffer(query, " ON ");
 | 
				
			||||||
	appendPQExpBufferStr(query, fmtId(evtinfo->evtevent));
 | 
						appendPQExpBufferStr(query, fmtId(evtinfo->evtevent));
 | 
				
			||||||
	appendPQExpBufferStr(query, " ");
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (strcmp("", evtinfo->evttags) != 0)
 | 
						if (strcmp("", evtinfo->evttags) != 0)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		appendPQExpBufferStr(query, "\n         WHEN TAG IN (");
 | 
							appendPQExpBufferStr(query, "\n         WHEN TAG IN (");
 | 
				
			||||||
		appendPQExpBufferStr(query, evtinfo->evttags);
 | 
							appendPQExpBufferStr(query, evtinfo->evttags);
 | 
				
			||||||
		appendPQExpBufferStr(query, ") ");
 | 
							appendPQExpBufferChar(query, ')');
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	appendPQExpBuffer(query, "\n   EXECUTE PROCEDURE ");
 | 
						appendPQExpBuffer(query, "\n   EXECUTE PROCEDURE ");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user