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-ee3616895...@postgrespro.ru Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/e09ad07b21a244c3cbcdbe3048e9ab0834ac6d41 Modified Files -------------- src/backend/access/transam/xlogarchive.c | 66 +++-------------- src/common/Makefile | 1 + src/common/archive.c | 121 +++++++++++++++++++++++++++++++ src/include/common/archive.h | 21 ++++++ src/tools/msvc/Mkvcbuild.pm | 1 + 5 files changed, 154 insertions(+), 56 deletions(-)