pgsql: Add PQfullProtocolVersion() to surface the precise protocol vers - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Add PQfullProtocolVersion() to surface the precise protocol vers
Date
Msg-id E1sngku-000JlN-Fo@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Amit Langote
Date:
Subject: pgsql: SQL/JSON: Avoid initializing unnecessary ON ERROR / ON EMPTY ste
Next
From: Tom Lane
Date:
Subject: pgsql: Don't bother checking the result of SPI_connect[_ext] anymore.