how to check the postgresql version in mac code example Example: check postgres version psql --version