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