历史版本PostgreSQL 9.1 已于 2016 年 10 月结束社区维护,本页译文保留供仍在使用旧版本的读者参考。新系统请看
当前版本。
本部分包含PostgreSQL客户端应用和工具的参考信息。并非所有这些命令都适用于一般用途;有些可能需要特殊权限。这些应用的共同点是,它们都可以在任意主机上运行,而不受数据库服务器所在位置的限制。
目录
- clusterdb — cluster a PostgreSQL database
- createdb — create a new PostgreSQL database
- createlang — install a PostgreSQL procedural language
- createuser — define a new PostgreSQL user account
- dropdb — remove a PostgreSQL database
- droplang — remove a PostgreSQL procedural language
- dropuser — remove a PostgreSQL user account
- ecpg — embedded SQL C preprocessor
- pg_basebackup — take a base backup of a PostgreSQL cluster
- pg_config — retrieve information about the installed version of PostgreSQL
- pg_dump — extract a PostgreSQL database into a script file or other archive file
- pg_dumpall — extract a PostgreSQL database cluster into a script file
- pg_restore — restore a PostgreSQL database from an archive file created by pg_dump
- psql — PostgreSQL interactive terminal
- reindexdb — reindex a PostgreSQL database
- vacuumdb — garbage-collect and analyze a PostgreSQL database