WIP support for preserving failover slots

This commit is contained in:
Craig Ringer
2016-03-30 14:51:12 +08:00
committed by Ian Barwick
parent 925d82f7a4
commit c22f4eaf6f
4 changed files with 174 additions and 2 deletions

View File

@@ -97,6 +97,17 @@ typedef struct
#define T_RUNTIME_OPTIONS_INITIALIZER { "", "", "", "", "", "", "", DEFAULT_WAL_KEEP_SEGMENTS, false, false, false, false, false, false, false, false, false, "smart", "", "", "", "", "", 0, "", "", "", false }
struct BackupLabel
{
XLogRecPtr start_wal_location;
XLogRecPtr checkpoint_location;
char backup_from[MAXLEN];
char backup_method[MAXLEN];
char start_time[MAXLEN];
char label[MAXLEN];
XLogRecPtr min_failover_slot_lsn;
};
extern char repmgr_schema[MAXLEN];
extern bool config_file_found;