Add PQfullProtocolVersion() to surface the precise protocol version.
authorRobert Haas <rhaas@postgresql.org>
Mon, 9 Sep 2024 15:54:55 +0000 (11:54 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 9 Sep 2024 15:54:55 +0000 (11:54 -0400)
commitcdb6b0fdb0b2face270406905d31f8f513b015cc
tree855c93a72bbe36872fa0f768a496f1749d030c75
parent5bbdfa8a18dc56d3e64aa723a68e02e897cb5ec3
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
doc/src/sgml/libpq.sgml
src/include/libpq/pqcomm.h
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/libpq-fe.h