how to figure out which version of postgres on ubuntu code example Example: check postgres version psql --version