mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Fix subscription test
After altering a subscription, we should wait until the updated table sync data has been fetched by the subscriber.
This commit is contained in:
		@@ -102,6 +102,9 @@ $node_subscriber->safe_psql('postgres',
 | 
				
			|||||||
$node_subscriber->safe_psql('postgres',
 | 
					$node_subscriber->safe_psql('postgres',
 | 
				
			||||||
	"ALTER SUBSCRIPTION tap_sub REFRESH PUBLICATION");
 | 
						"ALTER SUBSCRIPTION tap_sub REFRESH PUBLICATION");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$node_subscriber->poll_query_until('postgres', $synced_query)
 | 
				
			||||||
 | 
					  or die "Timed out while waiting for subscriber to synchronize data";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Add replica identity column.  (The serial is not necessary, but it's
 | 
					# Add replica identity column.  (The serial is not necessary, but it's
 | 
				
			||||||
# a convenient way to get a default on the new column so that rows
 | 
					# a convenient way to get a default on the new column so that rows
 | 
				
			||||||
# from the publisher that don't have the column yet can be inserted.)
 | 
					# from the publisher that don't have the column yet can be inserted.)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user