Add a separate walreceiver API function walrcv_server_version() to get the version of the remote server, instead of doing it as part of walrcv_identify_system(). This allows the server version to be available even for uses that don't call IDENTIFY_SYSTEM, and it seems cleaner anyway.
This is for an upcoming patch, not currently used.
69039fda83 Add walreceiver API to get remote server version
.../replication/libpqwalreceiver/libpqwalreceiver.c | 19 +++++++++++++------
src/backend/replication/logical/worker.c | 4 +---
src/backend/replication/walreceiver.c | 4 +---
src/include/replication/walreceiver.h | 11 +++++++----
4 files changed, 22 insertions(+), 16 deletions(-)