From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Simon Riggs <simon(at)2ndquadrant(dot)com> |
Cc: | 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-05 17:59:04 |
Message-ID: | 7437.1504634344@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:
> Does raise the further question of how psql behaves when we connect to
> a pre-10 server, so we have SERVER_VERSION_NUM but yet it is not set.
Huh? The variable will be set in any case. It should be correct for any
server version we might find in the wild --- so far as I can tell from the
commit history, every version supporting FE/BE protocol version 3 has sent
server_version at connection start. With a pre-7.4 server, it looks like
the variables would be set to "0.0.0" and "0" respectively.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2017-09-05 18:23:03 | Re: [COMMITTERS] pgsql: Add psql variables showing server version and psql version. |
Previous Message | Simon Riggs | 2017-09-05 17:41:11 | Re: [COMMITTERS] pgsql: Add psql variables showing server version and psql version. |
From | Date | Subject | |
---|---|---|---|
Next Message | Fabien COELHO | 2017-09-05 18:00:22 | Re: psql - add special variable to reflect the last query status |
Previous Message | Pavel Stehule | 2017-09-05 17:51:51 | Re: PoC plpgsql - possibility to force custom or generic plan |