Check the version of PostgreSQL by using psql.
psql
psql --version # psql (PostgreSQL) 10.3 (Ubuntu 10.3-1.pgdg16.04+1)