last version of postgre code example Example 1: get postgres version postgres -V // or psql --version Example 2: postgres version command SELECT version();