Chapter 4. Using psql and pgAdmin
The two most common utilities you will use to manage a PostgreSQL service are psql and pgAdmin. psql is a commandline tool that is generally shipped with PostgreSQL and is part of the PostgreSQL core source code and PostgreSQL project. pgAdmin project is a graphical user interface packaged separately. pgAdmin is under the same permissive licensing as PostgreSQL and with updated releases monthly.
psql
psql is the de rigueur command-line utility packaged with PostgreSQL. Aside from its common use of executing queries, you can use psql to execute scripts, import data, export data, restore tables, perform many other database administration tasks. It even generate reports! If you have access only to a server’s command line with no GUI, psql is your sole choice for interacting with PostgreSQL. If you fall into this group, you have to be intimate with a of myriad commands and options.
We suggest that you print out the dump of psql help and enshrine it above your ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access