From e09ad07b21a244c3cbcdbe3048e9ab0834ac6d41 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Tue, 24 Mar 2020 12:13:36 +0900 Subject: Move routine building restore_command to src/common/ restore_command has only been used until now by the backend, but there is a pending patch for pg_rewind to make use of that in the frontend. Author: Alexey Kondratov Reviewed-by: Andrey Borodin, Andres Freund, Alvaro Herrera, Alexander Korotkov, Michael Paquier Discussion: https://postgr.es/m/a3acff50-5a0d-9a2c-b3b2-ee36168955c1@postgrespro.ru --- src/include/common/archive.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/include/common/archive.h (limited to 'src/include') diff --git a/src/include/common/archive.h b/src/include/common/archive.h new file mode 100644 index 00000000000..b269910f03c --- /dev/null +++ b/src/include/common/archive.h @@ -0,0 +1,21 @@ +/*------------------------------------------------------------------------- + * + * archive.h + * Common WAL archive routines + * + * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * src/include/common/archive.h + * + *------------------------------------------------------------------------- + */ +#ifndef ARCHIVE_H +#define ARCHIVE_H + +extern char *BuildRestoreCommand(const char *restoreCommand, + const char *xlogpath, /* %p */ + const char *xlogfname, /* %f */ + const char *lastRestartPointFname); /* %r */ + +#endif /* ARCHIVE_H */ -- cgit v1.2.3