From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add walreceiver API to get remote server version
Date: Fri, 15 Mar 2019 09:34:17 +0000
Message-ID: <E1h4jEH-0008Jq-Nz@gemulon.postgresql.org> (raw)
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 <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/20190115071359.GF1433@paquier.xyz
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org
Subject: Re: pgsql: Add walreceiver API to get remote server version
In-Reply-To: <E1h4jEH-0008Jq-Nz@gemulon.postgresql.org>
References: <E1h4jEH-0008Jq-Nz@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox