Which version of PostgreSQL am I running?

Solution 1:

Run this query from PostgreSQL:

SELECT version();

Solution 2:

I believe this is what you are looking for,

Server version:

pg_config --version

Client version:

psql --version