Re: [HACKERS] [COMMITTERS] pgsql: Add psql variables showing server version and psql version. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] [COMMITTERS] pgsql: Add psql variables showing server version and psql version.
Date
Msg-id 2597.1504714572@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] [COMMITTERS] pgsql: Add psql variables showing serverversion and psql version.  (Simon Riggs <simon@2ndquadrant.com>)
Responses Re: [HACKERS] [COMMITTERS] pgsql: Add psql variables showing serverversion and psql version.
List pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes:
> * Clarification that this will work for current AND past server versions

The short answer is it works.  I do not think we need a longer answer.

(The existing comment in libpq says that the "select version()" method
works in any server version that supports protocol v2, which means that
we will derive a correct server version ID for any server that modern
libpq is capable of connecting to at all.  I've not gone back to re-verify
what I wrote in 2003, but I see no reason to doubt it.  We'd have been
considerably more fussed about whether PQserverVersion worked correctly
for ancient server versions back then than we need be today.)

> * Clarification to avoid confusion between VERSION and SERVER_VERSION

In what way are these variables not adequately specified already?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] Fix performance of generic atomics
Next
From: Dilip Kumar
Date:
Subject: Re: [HACKERS] UPDATE of partition key