Command-line Tools
Version coverage matrixDefinitions for PostgreSQL 18
Reading PG 18·Select a recorded version
clusterdb — cluster a PostgreSQL database
createdb — create a new PostgreSQL database
createuser — define a new PostgreSQL user account
dropdb — remove a PostgreSQL database
dropuser — remove a PostgreSQL user account
ecpg — embedded SQL C preprocessor
initdb — create a new PostgreSQL database cluster
pg_amcheck — checks for corruption in one or more PostgreSQL databases
pg_archivecleanup — clean up PostgreSQL WAL archive files
pg_basebackup — take a base backup of a PostgreSQL cluster
pg_checksums — enable, disable or check data checksums in a PostgreSQL database cluster
pg_combinebackup — reconstruct a full backup from an incremental backup and dependent backups
pg_config — retrieve information about the installed version of PostgreSQL
pg_controldata — display control information of a PostgreSQL database cluster
pg_createsubscriber — convert a physical replica into a new logical replica
pg_ctl — initialize, start, stop, or control a PostgreSQL server
pg_dump — export a PostgreSQL database as an SQL script or to other formats
pg_dumpall — extract a PostgreSQL database cluster into a script file
pg_isready — check the connection status of a PostgreSQL server
pg_receivewal — stream write-ahead logs from a PostgreSQL server
pg_recvlogical — control PostgreSQL logical decoding streams
pg_resetwal — reset the write-ahead log and other control information of a PostgreSQL database cluster
pg_restore — restore a PostgreSQL database from an archive file created by pg_dump
pg_rewind — synchronize a PostgreSQL data directory with another data directory that was forked from it
pg_test_fsync — determine fastest wal_sync_method for PostgreSQL
pg_test_timing — measure timing overhead
pg_upgrade — upgrade a PostgreSQL server instance
pg_verifybackup — verify the integrity of a base backup of a PostgreSQL cluster
pg_waldump — display a human-readable rendering of the write-ahead log of a PostgreSQL database cluster
pg_walsummary — print contents of WAL summary files
pgbench — run a benchmark test on PostgreSQL
postgres — PostgreSQL database server
psql — PostgreSQL interactive terminal
reindexdb — reindex a PostgreSQL database
vacuumdb — garbage-collect and analyze a PostgreSQL database