postgres database version code example Example: postgresql version command # SSH psql --version # SQL SELECT version();