psql

Name

psql --  PostgreSQL interactive terminal

Synopsis

psql [ options ] [ dbname [ user ] ]

Description

psql enables you to type in queries interactively, issue them to PostgreSQL, and see the query results. Alternatively, input can be from a file. In addition, it provides a number of meta-commands and various shell-like features to facilitate writing scripts and automating a wide variety of tasks.

For more information, see Chapter 9.