PostgreSQL · Command
psql
psql is PostgreSQL's terminal client. It runs SQL interactively or from files and command-line arguments, and it also provides psql-specific commands for scripting.
Last updated
Syntax
psql [ option ...] [ dbname [ username ]]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
\d\connect\i\list\psetON_ERROR_STOPPGHOSTPGPORT