Fill these in once
- Open psql
psql postgresThe rest of the commands are typed at the psql prompt.
- List databases
\l - Switch to a database
\c myapp_dev - List tables
\dt - Describe a table
\d users - Quit
\q
- Open psql
sudo -u postgres psqlThe rest of the commands are typed at the psql prompt.
- List databases
\l - Switch to a database
\c myapp_dev - List tables
\dt - Describe a table
\d users - Quit
\q
- Open psql
psql -U postgresThe rest of the commands are typed at the psql prompt.
- List databases
\l - Switch to a database
\c myapp_dev - List tables
\dt - Describe a table
\d users - Quit
\q