Move routine definitions of xlogarchive.c to a new header file
authorMichael Paquier <michael@paquier.xyz>
Tue, 31 Mar 2020 06:33:04 +0000 (15:33 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 31 Mar 2020 06:33:04 +0000 (15:33 +0900)
commit616ae3d2b0566e91b49f301bf08410a9972fed93
treec2aafd4f3f5eb25ed8da8a7bf5745337ee754791
parentfc8c3bdde20c4045659f082910cfcbb2b8c9fa4a
Move routine definitions of xlogarchive.c to a new header file

The definitions of the routines defined in xlogarchive.c have been part
of xlog_internal.h which is included by several frontend tools, but all
those routines are only called by the backend.  More cleanup could be
done within xlog_internal.h, but that's already a nice cut.

This will help a follow-up patch for pg_rewind where handling of
restore_command is added for frontends.

Author: Alexey Kondratov, Michael Paquier
Reviewed-by: Álvaro Herrera, Alexander Korotkov
Discussion: https://postgr.es/m/a3acff50-5a0d-9a2c-b3b2-ee36168955c1@postgrespro.ru
src/backend/access/transam/timeline.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogarchive.c
src/backend/replication/walreceiver.c
src/include/access/xlog_internal.h
src/include/access/xlogarchive.h [new file with mode: 0644]