mirror of https://github.com/postgres/postgres
The definitions of the routines defined in xlogarchive.c have been part of xlog_internal.h which is included by several frontend tools, but all those routines are only called by the backend. More cleanup could be done within xlog_internal.h, but that's already a nice cut. This will help a follow-up patch for pg_rewind where handling of restore_command is added for frontends. Author: Alexey Kondratov, Michael Paquier Reviewed-by: Álvaro Herrera, Alexander Korotkov Discussion: https://postgr.es/m/a3acff50-5a0d-9a2c-b3b2-ee36168955c1@postgrespro.rupull/51/head
parent
fc8c3bdde2
commit
616ae3d2b0
@ -0,0 +1,35 @@ |
||||
/*------------------------------------------------------------------------
|
||||
* |
||||
* xlogarchive.h |
||||
* Prototypes for WAL archives in the backend |
||||
* |
||||
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group |
||||
* Portions Copyright (c) 1994, Regents of the University of California |
||||
* |
||||
* IDENTIFICATION |
||||
* src/include/access/xlogarchive.h |
||||
* |
||||
*------------------------------------------------------------------------ |
||||
*/ |
||||
|
||||
#ifndef XLOG_ARCHIVE_H |
||||
#define XLOG_ARCHIVE_H |
||||
|
||||
#include "access/xlogdefs.h" |
||||
|
||||
extern bool RestoreArchivedFile(char *path, const char *xlogfname, |
||||
const char *recovername, off_t expectedSize, |
||||
bool cleanupEnabled); |
||||
extern void ExecuteRecoveryCommand(const char *command, const char *commandName, |
||||
bool failOnSignal); |
||||
extern void KeepFileRestoredFromArchive(const char *path, const char *xlogfname); |
||||
extern void XLogArchiveNotify(const char *xlog); |
||||
extern void XLogArchiveNotifySeg(XLogSegNo segno); |
||||
extern void XLogArchiveForceDone(const char *xlog); |
||||
extern bool XLogArchiveCheckDone(const char *xlog); |
||||
extern bool XLogArchiveIsBusy(const char *xlog); |
||||
extern bool XLogArchiveIsReady(const char *xlog); |
||||
extern bool XLogArchiveIsReadyOrDone(const char *xlog); |
||||
extern void XLogArchiveCleanup(const char *xlog); |
||||
|
||||
#endif /* XLOG_ARCHIVE_H */ |
Loading…
Reference in new issue