pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add PQfullProtocolVersion() to surface the precise protocol vers
Date: Mon, 09 Sep 2024 15:56:44 +0000
Message-ID: <E1sngku-000JlN-Fo@gemulon.postgresql.org> (raw)

Add PQfullProtocolVersion() to surface the precise protocol version.

The existing function PQprotocolVersion() does not include the minor
version of the protocol.  In preparation for pending work that will
bump that number for the first time, add a new function to provide it
to clients that may care, using the (major * 10000 + minor)
convention already used by PQserverVersion().

Jacob Champion based on earlier work by Jelte Fennema-Nio

Discussion: http://postgr.es/m/CAOYmi+mM8+6Swt1k7XsLcichJv8xdhPnuNv7-02zJWsezuDL+g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cdb6b0fdb0b2face270406905d31f8f513b015cc

Modified Files
--------------
doc/src/sgml/libpq.sgml           | 38 ++++++++++++++++++++++++++++++--------
src/include/libpq/pqcomm.h        |  1 +
src/interfaces/libpq/fe-connect.c | 10 ++++++++++
src/interfaces/libpq/libpq-fe.h   |  5 +++++
4 files changed, 46 insertions(+), 8 deletions(-)



Message-ID: <E1sngku-000JlN-Fo@gemulon.postgresql.org>
Permalink:  ../E1sngku-000JlN-Fo@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sngku-000JlN-Fo@gemulon.postgresql.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add PQfullProtocolVersion() to surface the precise protocol vers
  In-Reply-To: <E1sngku-000JlN-Fo@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