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