aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_rewind/pg_rewind.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/pg_rewind/pg_rewind.h')
-rw-r--r--src/bin/pg_rewind/pg_rewind.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bin/pg_rewind/pg_rewind.h b/src/bin/pg_rewind/pg_rewind.h
index 1125c7e60f6..aa3a0ce8fc5 100644
--- a/src/bin/pg_rewind/pg_rewind.h
+++ b/src/bin/pg_rewind/pg_rewind.h
@@ -14,10 +14,11 @@
#include "datapagemap.h"
#include "access/timeline.h"
+#include "common/logging.h"
+#include "libpq-fe.h"
#include "storage/block.h"
#include "storage/relfilenode.h"
-#include "common/logging.h"
/* Configuration options */
extern char *datadir_target;
@@ -31,6 +32,9 @@ extern int WalSegSz;
extern TimeLineHistoryEntry *targetHistory;
extern int targetNentries;
+/* general state */
+extern PGconn *conn;
+
/* Progress counters */
extern uint64 fetch_size;
extern uint64 fetch_done;
@@ -53,6 +57,7 @@ extern void progress_report(bool force);
/* in timeline.c */
extern TimeLineHistoryEntry *rewind_parseTimeLineHistory(char *buffer,
- TimeLineID targetTLI, int *nentries);
+ TimeLineID targetTLI,
+ int *nentries);
#endif /* PG_REWIND_H */