mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Fix bogus syntax for CREATE PUBLICATION commands emitted by pg_dump.
Original coding was careless about where to insert commas. Masahiko Sawada Discussion: https://postgr.es/m/3427593a-61aa-b17e-64ef-383b7742d6d9@enterprisedb.com
This commit is contained in:
		@@ -3491,20 +3491,20 @@ dumpPublication(Archive *fout, PublicationInfo *pubinfo)
 | 
				
			|||||||
		first = false;
 | 
							first = false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (pubinfo->pubupdate)
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
		if (!first)
 | 
							if (!first)
 | 
				
			||||||
			appendPQExpBufferStr(query, ", ");
 | 
								appendPQExpBufferStr(query, ", ");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (pubinfo->pubupdate)
 | 
					 | 
				
			||||||
	{
 | 
					 | 
				
			||||||
		appendPQExpBufferStr(query, "update");
 | 
							appendPQExpBufferStr(query, "update");
 | 
				
			||||||
		first = false;
 | 
							first = false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (pubinfo->pubdelete)
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
		if (!first)
 | 
							if (!first)
 | 
				
			||||||
			appendPQExpBufferStr(query, ", ");
 | 
								appendPQExpBufferStr(query, ", ");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (pubinfo->pubdelete)
 | 
					 | 
				
			||||||
	{
 | 
					 | 
				
			||||||
		appendPQExpBufferStr(query, "delete");
 | 
							appendPQExpBufferStr(query, "delete");
 | 
				
			||||||
		first = false;
 | 
							first = false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user