Skip to content

Instantly share code, notes, and snippets.

@vpetruchok
Last active July 11, 2017 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vpetruchok/be68a7d27f737fe9f5892ec7a3dc8b63 to your computer and use it in GitHub Desktop.
Save vpetruchok/be68a7d27f737fe9f5892ec7a3dc8b63 to your computer and use it in GitHub Desktop.

psql connection parameters

Parameter name Command line argurment Environment variable
Database name -d database $PGDATABASE
Hostname -h host $PGHOST
Port -p port $PGPORT
User name -U username $PGUSER

Usefull settings

echo "export PAGER=less" >> ~/.profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment