From: Andreas Joseph Krogh <andreas@visena.com>
To: Rob Sargent <robjsargent@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Sv: Re: Sv: Re: How to get shorter SERVER_VERSION in psql-prompt?
Date: Mon, 3 Sep 2018 23:47:40 +0200 (CEST)
Message-ID: <VisenaEmail.49.c8b9f1bd1f925b0e.165a1679e8f@tc7-visena> (raw)
In-Reply-To: <deb8d10b-327e-069e-01de-4b6f0e9af07c@gmail.com>
På mandag 03. september 2018 kl. 23:43:46, skrev Rob Sargent <
robjsargent@gmail.com <mailto:robjsargent@gmail.com>>:
On 09/03/2018 03:42 PM, Alvaro Herrera wrote:
> On 2018-Sep-03, Andreas Joseph Krogh wrote:
>
>> select setting as server_version from pg_settings where name =
>> 'server_version';
>> ┌──────────────────────────────────┐
>> │ server_version │
>> ├──────────────────────────────────┤
>> │ 10.5 (Ubuntu 10.5-1.pgdg18.04+1) │
>> └──────────────────────────────────┘
> Ugh. (So this is coming from "configure --with-extra-version" stuff)
>
> I guess you could just split it out at the first whitespace ...
>
Does that also diddle the value of "server_version_num"?
No:
show server_version_num;
┌────────────────────┐
│ server_version_num │
├────────────────────┤
│ 100005 │
└────────────────────┘
(1 row)
-- Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com;
<https://www.visena.com;
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: andreas@visena.com, robjsargent@gmail.com
Subject: Re: How to get shorter SERVER_VERSION in psql-prompt?
In-Reply-To: <VisenaEmail.49.c8b9f1bd1f925b0e.165a1679e8f@tc7-visena>
References: <deb8d10b-327e-069e-01de-4b6f0e9af07c@gmail.com> <VisenaEmail.49.c8b9f1bd1f925b0e.165a1679e8f@tc7-visena>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox