1 /*------------------------------------------------------------------------
4 * Prototypes for WAL archives in the backend
6 * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/access/xlogarchive.h
12 *------------------------------------------------------------------------
15 #ifndef XLOG_ARCHIVE_H
16 #define XLOG_ARCHIVE_H
18 #include "access/xlogdefs.h"
20 extern bool RestoreArchivedFile(char *path
, const char *xlogfname
,
21 const char *recovername
, off_t expectedSize
,
23 extern void ExecuteRecoveryCommand(const char *command
, const char *commandName
,
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
);
35 #endif /* XLOG_ARCHIVE_H */