mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Author: Shlok Kyal <shlok.kyal.oss@gmail.com> Backpatch-through: 13 Discussion: https://postgr.es/m/CANhcyEXsObdjkjxEnq10aJumDpa5J6aiPzgTh_w4KCWRYHLw6Q@mail.gmail.com
		
			
				
	
	
		
			21 lines
		
	
	
		
			732 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			732 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
Parsed test spec with 2 sessions
 | 
						|
 | 
						|
starting permutation: s1_insert_tbl1 s1_begin s1_insert_tbl1 s2_alter_pub_add_tbl s1_commit s1_insert_tbl1 s2_get_binary_changes
 | 
						|
step s1_insert_tbl1: INSERT INTO tbl1 (val1, val2) VALUES (1, 1);
 | 
						|
step s1_begin: BEGIN;
 | 
						|
step s1_insert_tbl1: INSERT INTO tbl1 (val1, val2) VALUES (1, 1);
 | 
						|
step s2_alter_pub_add_tbl: ALTER PUBLICATION pub ADD TABLE tbl1;
 | 
						|
step s1_commit: COMMIT;
 | 
						|
step s1_insert_tbl1: INSERT INTO tbl1 (val1, val2) VALUES (1, 1);
 | 
						|
step s2_get_binary_changes: SELECT count(data) FROM pg_logical_slot_get_binary_changes('isolation_slot', NULL, NULL, 'proto_version', '4', 'publication_names', 'pub') WHERE get_byte(data, 0) = 73;
 | 
						|
count
 | 
						|
-----
 | 
						|
    1
 | 
						|
(1 row)
 | 
						|
 | 
						|
?column?
 | 
						|
--------
 | 
						|
stop    
 | 
						|
(1 row)
 | 
						|
 |