I\'m in a corporate environment (running Debian Linux) and didn\'t install it myself. I access the databases using Navicat or phpPgAdmin (if that helps). I also don\'t have
For the current version of PgAdmin: 4.16 at the time of writing.
See screenshot below:
Run this query from PostgreSQL:
SELECT version();
If Select version()
returns with Memo try using the command this way:
Select version::char(100)
or
Select version::varchar(100)
Don’t know how reliable this is, but you can get two tokens of version fully automatically:
psql --version 2>&1 | tail -1 | awk '{print $3}' | sed 's/\./ /g' | awk '{print $1 "." $2}'
So you can build paths to binaries:
/usr/lib/postgresql/9.2/bin/postgres
Just replace 9.2 with this command.
in shell psql.exe , execute
\! psql -V
Using pgadmin4
it can be seen by double clicking Servers > server_name_here > Properties tab > Version:
Version 3.5:
Version 4.1, 4.5: