PostgreSQL Source Code  git master
replnodes.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * replnodes.h
4  * definitions for replication grammar parse nodes
5  *
6  *
7  * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/nodes/replnodes.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef REPLNODES_H
15 #define REPLNODES_H
16 
17 #include "access/xlogdefs.h"
18 #include "nodes/pg_list.h"
19 
20 typedef enum ReplicationKind
21 {
25 
26 
27 /* ----------------------
28  * IDENTIFY_SYSTEM command
29  * ----------------------
30  */
31 typedef struct IdentifySystemCmd
32 {
35 
36 
37 /* ----------------------
38  * BASE_BACKUP command
39  * ----------------------
40  */
41 typedef struct BaseBackupCmd
42 {
46 
47 
48 /* ----------------------
49  * CREATE_REPLICATION_SLOT command
50  * ----------------------
51  */
53 {
55  char *slotname;
57  char *plugin;
58  bool temporary;
59  bool two_phase;
62 
63 
64 /* ----------------------
65  * DROP_REPLICATION_SLOT command
66  * ----------------------
67  */
68 typedef struct DropReplicationSlotCmd
69 {
71  char *slotname;
72  bool wait;
74 
75 
76 /* ----------------------
77  * START_REPLICATION command
78  * ----------------------
79  */
80 typedef struct StartReplicationCmd
81 {
84  char *slotname;
89 
90 
91 /* ----------------------
92  * TIMELINE_HISTORY command
93  * ----------------------
94  */
95 typedef struct TimeLineHistoryCmd
96 {
100 
101 /* ----------------------
102  * SQL commands
103  * ----------------------
104  */
105 typedef struct SQLCmd
106 {
108 } SQLCmd;
109 
110 #endif /* REPLNODES_H */
struct StartReplicationCmd StartReplicationCmd
List * options
Definition: replnodes.h:44
NodeTag type
Definition: replnodes.h:107
XLogRecPtr startpoint
Definition: replnodes.h:86
uint32 TimeLineID
Definition: xlogdefs.h:59
struct TimeLineHistoryCmd TimeLineHistoryCmd
NodeTag
Definition: nodes.h:26
TimeLineID timeline
Definition: replnodes.h:98
ReplicationKind kind
Definition: replnodes.h:56
ReplicationKind kind
Definition: replnodes.h:83
NodeTag type
Definition: replnodes.h:43
ReplicationKind
Definition: replnodes.h:20
struct DropReplicationSlotCmd DropReplicationSlotCmd
uint64 XLogRecPtr
Definition: xlogdefs.h:21
TimeLineID timeline
Definition: replnodes.h:85
struct BaseBackupCmd BaseBackupCmd
struct CreateReplicationSlotCmd CreateReplicationSlotCmd
struct SQLCmd SQLCmd
Definition: pg_list.h:50
struct IdentifySystemCmd IdentifySystemCmd