File tree Expand file tree Collapse file tree 6 files changed +39
-18
lines changed Expand file tree Collapse file tree 6 files changed +39
-18
lines changed Original file line number Diff line number Diff line change 3737#include "access/timeline.h"
3838#include "access/xlog.h"
3939#include "access/xlog_internal.h"
40+ #include "access/xlogarchive.h"
4041#include "access/xlogdefs.h"
4142#include "pgstat.h"
4243#include "storage/fd.h"
Original file line number Diff line number Diff line change 3333#include "access/twophase.h"
3434#include "access/xact.h"
3535#include "access/xlog_internal.h"
36+ #include "access/xlogarchive.h"
3637#include "access/xloginsert.h"
3738#include "access/xlogreader.h"
3839#include "access/xlogutils.h"
Original file line number Diff line number Diff line change 2121
2222#include "access/xlog.h"
2323#include "access/xlog_internal.h"
24+ #include "access/xlogarchive.h"
2425#include "common/archive.h"
2526#include "miscadmin.h"
2627#include "postmaster/startup.h"
Original file line number Diff line number Diff line change 5555#include "access/timeline.h"
5656#include "access/transam.h"
5757#include "access/xlog_internal.h"
58+ #include "access/xlogarchive.h"
5859#include "catalog/pg_authid.h"
5960#include "catalog/pg_type.h"
6061#include "common/ip.h"
Original file line number Diff line number Diff line change @@ -320,22 +320,4 @@ extern bool InArchiveRecovery;
320320extern bool StandbyMode ;
321321extern char * recoveryRestoreCommand ;
322322
323- /*
324- * Prototypes for functions in xlogarchive.c
325- */
326- extern bool RestoreArchivedFile (char * path , const char * xlogfname ,
327- const char * recovername , off_t expectedSize ,
328- bool cleanupEnabled );
329- extern void ExecuteRecoveryCommand (const char * command , const char * commandName ,
330- bool failOnSignal );
331- extern void KeepFileRestoredFromArchive (const char * path , const char * xlogfname );
332- extern void XLogArchiveNotify (const char * xlog );
333- extern void XLogArchiveNotifySeg (XLogSegNo segno );
334- extern void XLogArchiveForceDone (const char * xlog );
335- extern bool XLogArchiveCheckDone (const char * xlog );
336- extern bool XLogArchiveIsBusy (const char * xlog );
337- extern bool XLogArchiveIsReady (const char * xlog );
338- extern bool XLogArchiveIsReadyOrDone (const char * xlog );
339- extern void XLogArchiveCleanup (const char * xlog );
340-
341323#endif /* XLOG_INTERNAL_H */
Original file line number Diff line number Diff line change 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 */
You can’t perform that action at this time.
0 commit comments