diff options
author | Michael Paquier <michael@paquier.xyz> | 2020-03-24 12:13:36 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2020-03-24 12:13:36 +0900 |
commit | e09ad07b21a244c3cbcdbe3048e9ab0834ac6d41 (patch) | |
tree | 3239e46294bfd6bbf897e1a2470a2fad20fef653 /src/include/common/archive.h | |
parent | b8e20d6dabdafbe905b62910dc0236037c7881e1 (diff) | |
download | postgresql-e09ad07b21a244c3cbcdbe3048e9ab0834ac6d41.tar.gz postgresql-e09ad07b21a244c3cbcdbe3048e9ab0834ac6d41.zip |
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
Diffstat (limited to 'src/include/common/archive.h')
-rw-r--r-- | src/include/common/archive.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 */ |