How to determine which version of PostgreSQL you are running

Run this SQL command to see which version of PostgreSQL you are running:

select version();

Reference: PostgreSQL Wiki