Re: Sv: Re: How to get shorter SERVER_VERSION in psql-prompt?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Sv: Re: How to get shorter SERVER_VERSION in psql-prompt?
Дата
Msg-id 20180903214201.q4heutmvdr6hlble@alvherre.pgsql
обсуждение исходный текст
Ответ на Sv: Re: How to get shorter SERVER_VERSION in psql-prompt?  (Andreas Joseph Krogh <andreas@visena.com>)
Ответы Re: Sv: Re: How to get shorter SERVER_VERSION in psql-prompt?
Список pgsql-general
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 ...

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-general по дате отправления:

Предыдущее
От: Andreas Joseph Krogh
Дата:
Сообщение: Sv: Re: How to get shorter SERVER_VERSION in psql-prompt?
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: Sv: Re: How to get shorter SERVER_VERSION in psql-prompt?