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