mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
pg_rewind will only be executed on a demoted primary if explictly requested, to prevent transactions on the primary, which were never replicated, from being automatically overwritten. If --force-rewind is provided, we'll need to check pg_rewind is actually useable before we need to use it.
28 lines
684 B
C
28 lines
684 B
C
/*
|
|
* controldata.h
|
|
* Copyright (c) 2ndQuadrant, 2010-2017
|
|
*
|
|
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*/
|
|
|
|
#ifndef _CONTROLDATA_H_
|
|
#define _CONTROLDATA_H_
|
|
|
|
#include "postgres_fe.h"
|
|
#include "catalog/pg_control.h"
|
|
|
|
typedef struct
|
|
{
|
|
bool control_file_processed;
|
|
ControlFileData *control_file;
|
|
} ControlFileInfo;
|
|
|
|
DBState get_db_state(const char *data_directory);
|
|
const char * describe_db_state(DBState state);
|
|
int get_data_checksum_version(const char *data_directory);
|
|
|
|
extern XLogRecPtr get_latest_checkpoint_location(const char *data_directory);
|
|
|
|
#endif /* _CONTROLDATA_H_ */
|