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-2020, 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);
25 extern void KeepFileRestoredFromArchive(const char *path, const char *xlogfname);
26 extern void XLogArchiveNotify(const char *xlog);
27 extern void XLogArchiveNotifySeg(XLogSegNo segno);
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 */
void XLogArchiveForceDone(const char *xlog)
Definition: xlogarchive.c:516
bool XLogArchiveIsReady(const char *xlog)
Definition: xlogarchive.c:700
bool XLogArchiveIsReadyOrDone(const char *xlog)
Definition: xlogarchive.c:670
void KeepFileRestoredFromArchive(const char *path, const char *xlogfname)
Definition: xlogarchive.c:380
uint64 XLogSegNo
Definition: xlogdefs.h:41
void XLogArchiveNotifySeg(XLogSegNo segno)
Definition: xlogarchive.c:500
bool XLogArchiveCheckDone(const char *xlog)
Definition: xlogarchive.c:571
bool RestoreArchivedFile(char *path, const char *xlogfname, const char *recovername, off_t expectedSize, bool cleanupEnabled)
Definition: xlogarchive.c:53
void ExecuteRecoveryCommand(const char *command, const char *commandName, bool failOnSignal)
Definition: xlogarchive.c:286
void XLogArchiveNotify(const char *xlog)
Definition: xlogarchive.c:466
void XLogArchiveCleanup(const char *xlog)
Definition: xlogarchive.c:718
bool XLogArchiveIsBusy(const char *xlog)
Definition: xlogarchive.c:625