aboutsummaryrefslogtreecommitdiff
path: root/src/include/nodes/replnodes.h
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-10-25 07:40:42 +0900
committerMichael Paquier <michael@paquier.xyz>2021-10-25 07:40:42 +0900
commitb4ada4e19fd7bedb433e46516ccd0ca4213d2719 (patch)
tree2b75aeb117daecb677e200aa29fd36d801ef94e8 /src/include/nodes/replnodes.h
parent70bef494000e4dbbeca0f0a40347ca1747aea701 (diff)
downloadpostgresql-b4ada4e19fd7bedb433e46516ccd0ca4213d2719.tar.gz
postgresql-b4ada4e19fd7bedb433e46516ccd0ca4213d2719.zip
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
Diffstat (limited to 'src/include/nodes/replnodes.h')
-rw-r--r--src/include/nodes/replnodes.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/nodes/replnodes.h b/src/include/nodes/replnodes.h
index faa3a251f26..a746fafc121 100644
--- a/src/include/nodes/replnodes.h
+++ b/src/include/nodes/replnodes.h
@@ -88,6 +88,17 @@ typedef struct StartReplicationCmd
/* ----------------------
+ * READ_REPLICATION_SLOT command
+ * ----------------------
+ */
+typedef struct ReadReplicationSlotCmd
+{
+ NodeTag type;
+ char *slotname;
+} ReadReplicationSlotCmd;
+
+
+/* ----------------------
* TIMELINE_HISTORY command
* ----------------------
*/