00001 /*------------------------------------------------------------------------- 00002 * 00003 * replnodes.h 00004 * definitions for replication grammar parse nodes 00005 * 00006 * 00007 * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group 00008 * Portions Copyright (c) 1994, Regents of the University of California 00009 * 00010 * src/include/nodes/replnodes.h 00011 * 00012 *------------------------------------------------------------------------- 00013 */ 00014 #ifndef REPLNODES_H 00015 #define REPLNODES_H 00016 00017 #include "access/xlogdefs.h" 00018 #include "nodes/pg_list.h" 00019 00020 00021 /* ---------------------- 00022 * IDENTIFY_SYSTEM command 00023 * ---------------------- 00024 */ 00025 typedef struct IdentifySystemCmd 00026 { 00027 NodeTag type; 00028 } IdentifySystemCmd; 00029 00030 00031 /* ---------------------- 00032 * BASE_BACKUP command 00033 * ---------------------- 00034 */ 00035 typedef struct BaseBackupCmd 00036 { 00037 NodeTag type; 00038 List *options; 00039 } BaseBackupCmd; 00040 00041 00042 /* ---------------------- 00043 * START_REPLICATION command 00044 * ---------------------- 00045 */ 00046 typedef struct StartReplicationCmd 00047 { 00048 NodeTag type; 00049 TimeLineID timeline; 00050 XLogRecPtr startpoint; 00051 } StartReplicationCmd; 00052 00053 00054 /* ---------------------- 00055 * TIMELINE_HISTORY command 00056 * ---------------------- 00057 */ 00058 typedef struct TimeLineHistoryCmd 00059 { 00060 NodeTag type; 00061 TimeLineID timeline; 00062 } TimeLineHistoryCmd; 00063 00064 #endif /* REPLNODES_H */