PostgreSQL
Connection Commands
PostgreSQL's psql client provides powerful database access. Learn connection methods including URLs, SSL configuration, and executing SQL files.
6 commands
Pro Tips
Store passwords in ~/.pgpass for secure, passwordless connections.
Use PGHOST, PGUSER, PGDATABASE env vars to avoid typing connection details.
Common Mistakes
Avoid passing passwords on command line - they appear in process listings.