12. PostgreSQL Enumeration - TheGetch/Penetration-Testing-Methodology GitHub Wiki
Manual connect:
psql -h <host> -p <port> -u <database>
With password:
psql -h <host> -p <port> -U <username> -W <password> <database>
Manual connect:
psql -h <host> -p <port> -u <database>
With password:
psql -h <host> -p <port> -U <username> -W <password> <database>