pgsql: Add walreceiver API to get remote server version

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pgsql: Add walreceiver API to get remote server version

Peter Eisentraut-3
Add walreceiver API to get remote server version

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.

Reviewed-by: Michael Paquier <[hidden email]>
Discussion: https://www.postgresql.org/message-id/20190115071359.GF1433@...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/69039fda837d7a9c78e42b9dd5291d454e71f460

Modified Files
--------------
.../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(-)