PostgreSQL Client Applications

|PostgreSQL Client Applications|                    |                  |                  |                           |
|:----------------------------:|--------------------|------------------|------------------|---------------------------|
|   [Prev](sql-values.html)    |[Up](reference.html)|Part VI. Reference|[Home](index.html)| [Next](app-clusterdb.html)|

---

# PostgreSQL Client Applications

---

 This part contains reference information for PostgreSQL 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](app-clusterdb.html) — cluster a PostgreSQL database[createdb](app-createdb.html) — create a new PostgreSQL database[createuser](app-createuser.html) — define a new PostgreSQL user account[dropdb](app-dropdb.html) — remove a PostgreSQL database[dropuser](app-dropuser.html) — remove a PostgreSQL user account[ecpg](app-ecpg.html) — embedded SQL C preprocessor[pg\_amcheck](app-pgamcheck.html) — checks for corruption in one or more PostgreSQL databases[pg\_basebackup](app-pgbasebackup.html) — take a base backup of a PostgreSQL cluster[pgbench](pgbench.html) — run a benchmark test on PostgreSQL[pg\_config](app-pgconfig.html) — retrieve information about the installed version of PostgreSQL[pg\_dump](app-pgdump.html) — extract a PostgreSQL database into a script file or other archive file [pg\_dumpall](app-pg-dumpall.html) — extract a PostgreSQL database cluster into a script file[pg\_isready](app-pg-isready.html) — check the connection status of a PostgreSQL server[pg\_receivewal](app-pgreceivewal.html) — stream write-ahead logs from a PostgreSQL server[pg\_recvlogical](app-pgrecvlogical.html) — control PostgreSQL logical decoding streams[pg\_restore](app-pgrestore.html) — restore a PostgreSQL database from an archive file created by pg\_dump [pg\_verifybackup](app-pgverifybackup.html) — verify the integrity of a base backup of a PostgreSQL cluster[psql](app-psql.html) — PostgreSQL interactive terminal [reindexdb](app-reindexdb.html) — reindex a PostgreSQL database[vacuumdb](app-vacuumdb.html) — garbage-collect and analyze a PostgreSQL database

---

|[Prev](sql-values.html)|[Up](reference.html)| [Next](app-clusterdb.html)|
|:----------------------|:------------------:|--------------------------:|
|        VALUES         | [Home](index.html) |         clusterdb         |

 // \<![CDATA[ \<-- For SVG support if ('WebSocket' in window) { (function() { function refreshCSS() { var sheets = [].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i \< sheets.length; ++i) { var elem = sheets[i]; head.removeChild(elem); var rel = elem.rel; if (elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") { var url = elem.href.replace(/(&|\\?)\_cacheOverride=\\d+/, ''); elem.href = url + (url.indexOf('?') \>= 0 ? '&' : '?') + '\_cacheOverride=' + (new Date().valueOf()); } head.appendChild(elem); } } var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://'; var address = protocol + window.location.host + window.location.pathname + '/ws'; var socket = new WebSocket(address); socket.onmessage = function(msg) { if (msg.data == 'reload') window.location.reload(); else if (msg.data == 'refreshcss') refreshCSS(); }; console.log('Live reload enabled.'); })(); } // ]]\>