PostgreSQL Source Code  git master
xlogarchive.h
Go to the documentation of this file.
1 /*------------------------------------------------------------------------
2  *
3  * xlogarchive.h
4  * Prototypes for WAL archives in the backend
5  *
6  * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * IDENTIFICATION
10  * src/include/access/xlogarchive.h
11  *
12  *------------------------------------------------------------------------
13  */
14 
15 #ifndef XLOG_ARCHIVE_H
16 #define XLOG_ARCHIVE_H
17 
18 #include "access/xlogdefs.h"
19 
20 extern bool RestoreArchivedFile(char *path, const char *xlogfname,
21  const char *recovername, off_t expectedSize,
22  bool cleanupEnabled);
23 extern void ExecuteRecoveryCommand(const char *command, const char *commandName,
24  bool failOnSignal, uint32 wait_event_info);
25 extern void KeepFileRestoredFromArchive(const char *path, const char *xlogfname);
26 extern void XLogArchiveNotify(const char *xlog);
27 extern void XLogArchiveNotifySeg(XLogSegNo segno, TimeLineID tli);
28 extern void XLogArchiveForceDone(const char *xlog);
29 extern bool XLogArchiveCheckDone(const char *xlog);
30 extern bool XLogArchiveIsBusy(const char *xlog);
31 extern bool XLogArchiveIsReady(const char *xlog);
32 extern bool XLogArchiveIsReadyOrDone(const char *xlog);
33 extern void XLogArchiveCleanup(const char *xlog);
34 
35 #endif /* XLOG_ARCHIVE_H */
unsigned int uint32
Definition: c.h:441
void XLogArchiveForceDone(const char *xlog)
Definition: xlogarchive.c:540
bool XLogArchiveIsReadyOrDone(const char *xlog)
Definition: xlogarchive.c:694
bool XLogArchiveIsBusy(const char *xlog)
Definition: xlogarchive.c:649
bool XLogArchiveIsReady(const char *xlog)
Definition: xlogarchive.c:724
void XLogArchiveNotifySeg(XLogSegNo segno, TimeLineID tli)
Definition: xlogarchive.c:522
void ExecuteRecoveryCommand(const char *command, const char *commandName, bool failOnSignal, uint32 wait_event_info)
Definition: xlogarchive.c:290
bool XLogArchiveCheckDone(const char *xlog)
Definition: xlogarchive.c:595
bool RestoreArchivedFile(char *path, const char *xlogfname, const char *recovername, off_t expectedSize, bool cleanupEnabled)
Definition: xlogarchive.c:54
void XLogArchiveNotify(const char *xlog)
Definition: xlogarchive.c:474
void KeepFileRestoredFromArchive(const char *path, const char *xlogfname)
Definition: xlogarchive.c:388
void XLogArchiveCleanup(const char *xlog)
Definition: xlogarchive.c:742
uint32 TimeLineID
Definition: xlogdefs.h:59
uint64 XLogSegNo
Definition: xlogdefs.h:48