Hi all, I'm using the Ubuntu-packages and have this in my .psqlrc: \set PROMPT1 '%[%033[35m%]%n@%m:%>%[%033[0m%] %:server_version: %[%033[32m%]%/%[%033[0m%]%R%# ' This results in this verver_version: 10.5 (Ubuntu 10.5-1.pgdg18.04+1) Is it possible to adjust this somehow so it outputs only "10.5"? Thanks in advance. -- Andreas Joseph Krogh CTO / Partner - Visena AS Mobile: +47 909 56 963 andr...@visena.com <mailto:andr...@visena.com> www.visena.com <https://www.visena.com> <https://www.visena.com>
- How to get shorter SERVER_VERSION in psql-prompt? Andreas Joseph Krogh
- Re: How to get shorter SERVER_VERSION in psq... Alvaro Herrera
- Sv: Re: How to get shorter SERVER_VERSIO... Andreas Joseph Krogh
- Re: Sv: Re: How to get shorter SERVE... Alvaro Herrera
- Re: Sv: Re: How to get shorter S... Rob Sargent
- Sv: Re: Sv: Re: How to get ... Andreas Joseph Krogh
- Re: Sv: Re: How to get shor... Christoph Moench-Tegeder
- Re: How to get shorter SERVER_VERSION in psq... Christoph Moench-Tegeder
- Sv: Re: How to get shorter SERVER_VERSIO... Andreas Joseph Krogh