mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Add replication command READ_REPLICATION_SLOT
The command is supported for physical slots for now, and returns the type of slot, its restart_lsn and its restart_tli. This will be useful for an upcoming patch related to pg_receivewal, to allow the tool to be able to stream from the position of a slot, rather than the last WAL position flushed by the backend (as reported by IDENTIFY_SYSTEM) if the archive directory is found as empty, which would be an advantage in the case of switching to a different archive locations with the same slot used to avoid holes in WAL segment archives. Author: Ronan Dunklau Reviewed-by: Kyotaro Horiguchi, Michael Paquier, Bharath Rupireddy Discussion: https://postgr.es/m/18708360.4lzOvYHigE@aivenronan
This commit is contained in:
		@@ -496,6 +496,7 @@ typedef enum NodeTag
 | 
			
		||||
	T_BaseBackupCmd,
 | 
			
		||||
	T_CreateReplicationSlotCmd,
 | 
			
		||||
	T_DropReplicationSlotCmd,
 | 
			
		||||
	T_ReadReplicationSlotCmd,
 | 
			
		||||
	T_StartReplicationCmd,
 | 
			
		||||
	T_TimeLineHistoryCmd,
 | 
			
		||||
	T_SQLCmd,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user