mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Move frontend-side archive APIs from src/common/ to src/fe_utils/
fe_archive.c was compiled only for the frontend in src/common/, but as it will never share anything with the backend, it makes most sense to move this file to src/fe_utils/. Reported-by: Peter Eisentraut Discussion: https://postgr.es/m/e9766d71-8655-ac86-bdf6-77e0e7169977@2ndquadrant.com Backpatch-through: 13
This commit is contained in:
21
src/include/fe_utils/archive.h
Normal file
21
src/include/fe_utils/archive.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* archive.h
|
||||
* Routines to access WAL archives from frontend
|
||||
*
|
||||
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* src/include/fe_utils/archive.h
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef FE_ARCHIVE_H
|
||||
#define FE_ARCHIVE_H
|
||||
|
||||
extern int RestoreArchivedFile(const char *path,
|
||||
const char *xlogfname,
|
||||
off_t expectedSize,
|
||||
const char *restoreCommand);
|
||||
|
||||
#endif /* FE_ARCHIVE_H */
|
Reference in New Issue
Block a user