官术网_书友最值得收藏!

The PostgreSQL clients

In addition to PgAdmin III and the psql client tools, there are a lot of vendors producing tools for PostgreSQL that cover different areas, such as database administration, modeling, development, reporting, ETL, and reverse engineering. In addition to the psql tool, PostgreSQL is shipped with several client tools, including the following:

  • Wrappers: The wrappers are built around SQL commands such as CREATE USER. These wrappers facilitate the interaction between the database server and the developer, and automate the daily routine tasks.
  • Backup and replication: PostgreSQL supports physical and logical backups. The physical backup is performed by taking a snapshot of the database files. The physical backup can be combined with WAL in order to achieve streaming replication or a hot standby solution. Logical backup is used to dump the database in the form of SQL statements. Unlike physical backup, one can dump and restore a single database.
  • Utilities: PostgreSQL comes with several utilities to ease extraction of information and to help in diagnosing the problems.

The PostgreSQL community unifies the look and feel of the client tools as much as possible; this makes it easy to use and learn. For example, the connection options are unified across all client tools. The following list shows the connection options for psql, which are common for other PostgreSQL clients as well:

  • -d: The database name 
  • -h: The host name or IP address 
  • -u: The username 
  • -p: The port 

Also, most PostgreSQL clients can use the environment variables supported by libpq, such as PGHOST, PGDATABASE, and PGUSER. The libpq environment variables can be used to determine the default connection parameter values.

主站蜘蛛池模板: 格尔木市| 江都市| 永丰县| 英吉沙县| 精河县| 安国市| 山阴县| 本溪市| 横峰县| 泰宁县| 玛曲县| 项城市| 澜沧| 广安市| 乌兰浩特市| 广德县| 农安县| 马龙县| 五河县| 应用必备| 洞口县| 呼和浩特市| 庆城县| 黑山县| 拉孜县| 鄂托克旗| 黎平县| 江西省| 登封市| 谢通门县| 嘉黎县| 孟津县| 景东| 大田县| 吉隆县| 博湖县| 定襄县| 南汇区| 克什克腾旗| 苍溪县| 光山县|