PG: Version Command

pg_config --version

psql --version

More info:

psql database_name
SELECT version();