Which version of PostgreSQL am I running?

This commit is contained in:
Morgan 2019-10-12 14:08:46 +02:00 committed by GitHub
parent 3b35273031
commit 6702e1e4f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,3 +49,8 @@
### Detail of a role
`SELECT * FROM pg_roles WHERE rolname = '...'`
### Which version of PostgreSQL am I running? [src](https://stackoverflow.com/questions/13733719/which-version-of-postgresql-am-i-running)
If you're using CLI and you're a postgres user, then you can do this:
`psql -c "SELECT version();"`