Thread: pgsql: Add PQfullProtocolVersion() to surface the precise protocol vers

pgsql: Add PQfullProtocolVersion() to surface the precise protocol vers

From
Robert Haas
Date:
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(-)