1 /*-------------------------------------------------------------------------
4 * definitions for replication grammar parse nodes
7 * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/nodes/replnodes.h
12 *-------------------------------------------------------------------------
17 #include "access/xlogdefs.h"
18 #include "nodes/pg_list.h"
20 typedef enum ReplicationKind
22 REPLICATION_KIND_PHYSICAL
,
23 REPLICATION_KIND_LOGICAL
27 /* ----------------------
28 * IDENTIFY_SYSTEM command
29 * ----------------------
31 typedef struct IdentifySystemCmd
37 /* ----------------------
39 * ----------------------
41 typedef struct BaseBackupCmd
48 /* ----------------------
49 * CREATE_REPLICATION_SLOT command
50 * ----------------------
52 typedef struct CreateReplicationSlotCmd
60 } CreateReplicationSlotCmd
;
63 /* ----------------------
64 * DROP_REPLICATION_SLOT command
65 * ----------------------
67 typedef struct DropReplicationSlotCmd
72 } DropReplicationSlotCmd
;
75 /* ----------------------
76 * START_REPLICATION command
77 * ----------------------
79 typedef struct StartReplicationCmd
85 XLogRecPtr startpoint
;
87 } StartReplicationCmd
;
90 /* ----------------------
91 * READ_REPLICATION_SLOT command
92 * ----------------------
94 typedef struct ReadReplicationSlotCmd
98 } ReadReplicationSlotCmd
;
101 /* ----------------------
102 * TIMELINE_HISTORY command
103 * ----------------------
105 typedef struct TimeLineHistoryCmd
109 } TimeLineHistoryCmd
;
111 /* ----------------------
113 * ----------------------
115 typedef struct SQLCmd
120 #endif /* REPLNODES_H */