how to check postgresql version in centos 7 code example Example 1: check postgres version psql --version Example 2: postgres version command SELECT version();