PostgreSQL Source Code
git master
Loading...
Searching...
No Matches
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-2026, 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
{
22
REPLICATION_KIND_PHYSICAL
,
23
REPLICATION_KIND_LOGICAL
,
24
}
ReplicationKind
;
25
26
27
/* ----------------------
28
* IDENTIFY_SYSTEM command
29
* ----------------------
30
*/
31
typedef
struct
IdentifySystemCmd
32
{
33
NodeTag
type
;
34
}
IdentifySystemCmd
;
35
36
37
/* ----------------------
38
* BASE_BACKUP command
39
* ----------------------
40
*/
41
typedef
struct
BaseBackupCmd
42
{
43
NodeTag
type
;
44
List
*
options
;
45
}
BaseBackupCmd
;
46
47
48
/* ----------------------
49
* CREATE_REPLICATION_SLOT command
50
* ----------------------
51
*/
52
typedef
struct
CreateReplicationSlotCmd
53
{
54
NodeTag
type
;
55
char
*
slotname
;
56
ReplicationKind
kind
;
57
char
*
plugin
;
58
bool
temporary
;
59
List
*
options
;
60
}
CreateReplicationSlotCmd
;
61
62
63
/* ----------------------
64
* DROP_REPLICATION_SLOT command
65
* ----------------------
66
*/
67
typedef
struct
DropReplicationSlotCmd
68
{
69
NodeTag
type
;
70
char
*
slotname
;
71
bool
wait
;
72
}
DropReplicationSlotCmd
;
73
74
75
/* ----------------------
76
* ALTER_REPLICATION_SLOT command
77
* ----------------------
78
*/
79
typedef
struct
AlterReplicationSlotCmd
80
{
81
NodeTag
type
;
82
char
*
slotname
;
83
List
*
options
;
84
}
AlterReplicationSlotCmd
;
85
86
87
/* ----------------------
88
* START_REPLICATION command
89
* ----------------------
90
*/
91
typedef
struct
StartReplicationCmd
92
{
93
NodeTag
type
;
94
ReplicationKind
kind
;
95
char
*
slotname
;
96
TimeLineID
timeline
;
97
XLogRecPtr
startpoint
;
98
List
*
options
;
99
}
StartReplicationCmd
;
100
101
102
/* ----------------------
103
* READ_REPLICATION_SLOT command
104
* ----------------------
105
*/
106
typedef
struct
ReadReplicationSlotCmd
107
{
108
NodeTag
type
;
109
char
*
slotname
;
110
}
ReadReplicationSlotCmd
;
111
112
113
/* ----------------------
114
* TIMELINE_HISTORY command
115
* ----------------------
116
*/
117
typedef
struct
TimeLineHistoryCmd
118
{
119
NodeTag
type
;
120
TimeLineID
timeline
;
121
}
TimeLineHistoryCmd
;
122
123
/* ----------------------
124
* UPLOAD_MANIFEST command
125
* ----------------------
126
*/
127
typedef
struct
UploadManifestCmd
128
{
129
NodeTag
type
;
130
}
UploadManifestCmd
;
131
132
#endif
/* REPLNODES_H */
NodeTag
NodeTag
Definition
nodes.h:27
pg_list.h
ReplicationKind
ReplicationKind
Definition
replnodes.h:21
REPLICATION_KIND_PHYSICAL
@ REPLICATION_KIND_PHYSICAL
Definition
replnodes.h:22
REPLICATION_KIND_LOGICAL
@ REPLICATION_KIND_LOGICAL
Definition
replnodes.h:23
AlterReplicationSlotCmd
Definition
replnodes.h:80
AlterReplicationSlotCmd::options
List * options
Definition
replnodes.h:83
AlterReplicationSlotCmd::type
NodeTag type
Definition
replnodes.h:81
AlterReplicationSlotCmd::slotname
char * slotname
Definition
replnodes.h:82
BaseBackupCmd
Definition
replnodes.h:42
BaseBackupCmd::type
NodeTag type
Definition
replnodes.h:43
BaseBackupCmd::options
List * options
Definition
replnodes.h:44
CreateReplicationSlotCmd
Definition
replnodes.h:53
CreateReplicationSlotCmd::kind
ReplicationKind kind
Definition
replnodes.h:56
CreateReplicationSlotCmd::options
List * options
Definition
replnodes.h:59
CreateReplicationSlotCmd::type
NodeTag type
Definition
replnodes.h:54
CreateReplicationSlotCmd::slotname
char * slotname
Definition
replnodes.h:55
CreateReplicationSlotCmd::temporary
bool temporary
Definition
replnodes.h:58
CreateReplicationSlotCmd::plugin
char * plugin
Definition
replnodes.h:57
DropReplicationSlotCmd
Definition
replnodes.h:68
DropReplicationSlotCmd::wait
bool wait
Definition
replnodes.h:71
DropReplicationSlotCmd::type
NodeTag type
Definition
replnodes.h:69
DropReplicationSlotCmd::slotname
char * slotname
Definition
replnodes.h:70
IdentifySystemCmd
Definition
replnodes.h:32
IdentifySystemCmd::type
NodeTag type
Definition
replnodes.h:33
List
Definition
pg_list.h:54
ReadReplicationSlotCmd
Definition
replnodes.h:107
ReadReplicationSlotCmd::type
NodeTag type
Definition
replnodes.h:108
ReadReplicationSlotCmd::slotname
char * slotname
Definition
replnodes.h:109
StartReplicationCmd
Definition
replnodes.h:92
StartReplicationCmd::startpoint
XLogRecPtr startpoint
Definition
replnodes.h:97
StartReplicationCmd::type
NodeTag type
Definition
replnodes.h:93
StartReplicationCmd::options
List * options
Definition
replnodes.h:98
StartReplicationCmd::slotname
char * slotname
Definition
replnodes.h:95
StartReplicationCmd::kind
ReplicationKind kind
Definition
replnodes.h:94
StartReplicationCmd::timeline
TimeLineID timeline
Definition
replnodes.h:96
TimeLineHistoryCmd
Definition
replnodes.h:118
TimeLineHistoryCmd::timeline
TimeLineID timeline
Definition
replnodes.h:120
TimeLineHistoryCmd::type
NodeTag type
Definition
replnodes.h:119
UploadManifestCmd
Definition
replnodes.h:128
UploadManifestCmd::type
NodeTag type
Definition
replnodes.h:129
xlogdefs.h
XLogRecPtr
uint64 XLogRecPtr
Definition
xlogdefs.h:21
TimeLineID
uint32 TimeLineID
Definition
xlogdefs.h:63
src
include
nodes
replnodes.h
Generated on Sat Feb 7 2026 12:13:17 for PostgreSQL Source Code by
1.9.8