From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add PQfullProtocolVersion() to surface the precise protocol vers |
Date: | 2024-09-09 15:56:44 |
Message-ID: | E1sngku-000JlN-Fo@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2024-09-09 16:18:52 | pgsql: Don't bother checking the result of SPI_connect[_ext] anymore. |
Previous Message | Amit Langote | 2024-09-09 06:59:44 | pgsql: SQL/JSON: Avoid initializing unnecessary ON ERROR / ON EMPTY ste |