Re: [COMMITTERS] pgsql: Add psql variables showing server version and psql version.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Add psql variables showing server version and psql version.
Date: 2017-09-06 16:16:12
Message-ID: 2597.1504714572@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Simon Riggs <simon(at)2ndquadrant(dot)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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Fabien COELHO 2017-09-06 17:53:40 Re: [COMMITTERS] pgsql: Add psql variables showing server version and psql version.
Previous Message Simon Riggs 2017-09-06 15:41:53 Re: [COMMITTERS] pgsql: Add psql variables showing server version and psql version.

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2017-09-06 16:17:51 Re: UPDATE of partition key
Previous Message Robert Haas 2017-09-06 16:09:11 Re: Fix performance of generic atomics