retrieve postgres server version code example Example: get postgres version postgres -V // or psql --version