how to check postgres version from command line code example Example: check postgres version psql --version