Skip to content

Instantly share code, notes, and snippets.

@langsharpe
Last active March 28, 2017 23:37
Show Gist options
  • Save langsharpe/c71012ed1e48221af612b94d299c27d1 to your computer and use it in GitHub Desktop.
Save langsharpe/c71012ed1e48221af612b94d299c27d1 to your computer and use it in GitHub Desktop.
psql shortcuts
# Dump into a "custom" compressed format
pg_dump -Fc db_name > db_name.dump
\x on # Turns on "Expanded display" of query results
\l # List Databases
\dt # List tables
\d+ public.tablename # Show table columns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment