Some notes on using PostgreSQL and the psql command line interface.
psql
psql is a command line tool that can be used to:
Use psql <database> -h <host> -U <username> to create an interactive shell.
psql <database> -h <host> -U <username>
PGPASSWORD
PGUSER
Use `psql -f <script_file> to execute a script.
The following commands are available inside the psql interactive shell.
\l
\c
\d
\i
\q
SQL commands can be executed directly in the interactive shell, ended with ';'.
There was an error while loading. Please reload this page.