mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	Commit6f37c08057removed whitespace from the SQL file but not the expected-output file, and commit7e8db2dc42changed the error message without updating the expected outputs.
		
			
				
	
	
		
			36 lines
		
	
	
		
			982 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			982 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| -- predictability
 | |
| SET synchronous_commit = on;
 | |
| SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'test_decoding');
 | |
|  ?column? 
 | |
| ----------
 | |
|  init
 | |
| (1 row)
 | |
| 
 | |
| -- succeeds, textual plugin, textual consumer
 | |
| SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'force-binary', '0');
 | |
|  data 
 | |
| ------
 | |
| (0 rows)
 | |
| 
 | |
| -- fails, binary plugin, textual consumer
 | |
| SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'force-binary', '1');
 | |
| ERROR:  output plugin cannot produce binary output
 | |
| -- succeeds, textual plugin, binary consumer
 | |
| SELECT data FROM pg_logical_slot_get_binary_changes('regression_slot', NULL, NULL, 'force-binary', '0');
 | |
|  data 
 | |
| ------
 | |
| (0 rows)
 | |
| 
 | |
| -- succeeds, binary plugin, binary consumer
 | |
| SELECT data FROM pg_logical_slot_get_binary_changes('regression_slot', NULL, NULL, 'force-binary', '1');
 | |
|  data 
 | |
| ------
 | |
| (0 rows)
 | |
| 
 | |
| SELECT 'init' FROM pg_drop_replication_slot('regression_slot');
 | |
|  ?column? 
 | |
| ----------
 | |
|  init
 | |
| (1 row)
 | |
| 
 |