Move routine building restore_command to src/common/

Michael Paquier <michael@paquier.xyz>

Commit: e09ad07b21a244c3cbcdbe3048e9ab0834ac6d41
Author: Michael Paquier <michael@paquier.xyz>
Date: 2020-03-24T03:13:36Z
Releases: 13.0
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

Files

PathChange+/−
src/backend/access/transam/xlogarchive.c modified +10 −56
src/common/archive.c added +121 −0
src/common/Makefile modified +1 −0
src/include/common/archive.h added +21 −0
src/tools/msvc/Mkvcbuild.pm modified +1 −0

Discussion