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