how to check version of postgresql in ubuntu code example Example: check postgres version psql --version