diff options
Diffstat (limited to 'src/include/replication/replnodes.h')
-rw-r--r-- | src/include/replication/replnodes.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/include/replication/replnodes.h b/src/include/replication/replnodes.h new file mode 100644 index 00000000000..4f4a1a3bac3 --- /dev/null +++ b/src/include/replication/replnodes.h @@ -0,0 +1,63 @@ +/*------------------------------------------------------------------------- + * + * replnodes.h + * definitions for replication grammar parse nodes + * + * + * Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * src/include/replication/replnodes.h + * + *------------------------------------------------------------------------- + */ +#ifndef REPLNODES_H +#define REPLNODES_H + +#include "access/xlogdefs.h" +#include "nodes/primnodes.h" +#include "nodes/value.h" + +/* + * NodeTags for replication parser + */ +typedef enum ReplNodeTag +{ + T_IdentifySystemCmd = 10, + T_BaseBackupCmd, + T_StartReplicationCmd +} ReplNodeTag; + +/* ---------------------- + * IDENTIFY_SYSTEM command + * ---------------------- + */ +typedef struct IdentifySystemCmd +{ + NodeTag type; +} IdentifySystemCmd; + + +/* ---------------------- + * BASE_BACKUP command + * ---------------------- + */ +typedef struct BaseBackupCmd +{ + NodeTag type; + char *label; + bool progress; +} BaseBackupCmd; + + +/* ---------------------- + * START_REPLICATION command + * ---------------------- + */ +typedef struct StartReplicationCmd +{ + NodeTag type; + XLogRecPtr startpoint; +} StartReplicationCmd; + +#endif /* REPLNODES_H */ |