Run this query from PostgreSQL:

SELECT version();