PostgreSQL Client Applications
This part contains reference information forPostgreSQL client applications and utilities. Not all of these commands are of general utility; some might require special privileges. The common feature of these applications is that they can be run on any host, independent of where the database server resides.
When specified on the command line, user and database names have their case preserved — the presence of spaces or special characters might require quoting. Table names and other identifiers do not have their case preserved, except where documented, and might require quoting.
Table of Contents
- clusterdb — cluster aPostgreSQL database
- createdb — create a newPostgreSQL database
- createuser — define a newPostgreSQL user account
- dropdb — remove aPostgreSQL database
- dropuser — remove aPostgreSQL user account
- ecpg — embedded SQL C preprocessor
- pg_amcheck — checks for corruption in one or morePostgreSQL databases
- pg_basebackup — take a base backup of aPostgreSQL cluster
- pgbench — run a benchmark test onPostgreSQL
- pg_combinebackup — reconstruct a full backup from an incremental backup and dependent backups
- pg_config — retrieve information about the installed version ofPostgreSQL
- pg_dump — extract aPostgreSQL database into a script file or other archive file
- pg_dumpall — extract aPostgreSQL database cluster into a script file
- pg_isready — check the connection status of aPostgreSQL server
- pg_receivewal — stream write-ahead logs from aPostgreSQL server
- pg_recvlogical — controlPostgreSQL logical decoding streams
- pg_restore — restore aPostgreSQL database from an archive file created bypg_dump
- pg_verifybackup — verify the integrity of a base backup of aPostgreSQL cluster
- psql —PostgreSQL interactive terminal
- reindexdb — reindex aPostgreSQL database
- vacuumdb — garbage-collect and analyze aPostgreSQL database
- createdb — create a newPostgreSQL database