getting all versions of postgres on ubuntu code example Example: check postgres version psql --version