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