The PostgreSQL Command-Line Client

You invoke the PostgreSQL command-line client with the command psql. Like mysql, you can invoke psql with the name of the database to which you would like to connect. Also like mysql, psql can take several options. These options are listed in Table 29.2.

Image

TABLE 29.2 Command-Line Options to Use When Invoking psql

Several more options are available in addition to those listed in Table 29.2. See the psql man page for details on all the available options.

Get Ubuntu Unleashed 2014 Edition: Covering 13.10 and 14.04,Ninth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.