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

  • Learning PostgreSQL 11
  • Salahaldin Juba Andrey Volkov
  • 265字
  • 2021-07-02 13:11:46

PostgreSQL clients

In addition to PgAdmin4 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 daily routine tasks.
  • Backup and replication: PostgreSQL supports physical and logical backups. The physical backup is performed by copying the database files and the WAL files accumulated while copying 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, you can dump and restore a single database, a table, or even a specific dataset.

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, such as createdb and createuser:

  • -d: The database name
  • -h: The hostname 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.

主站蜘蛛池模板: 罗田县| 西乌珠穆沁旗| 景德镇市| 龙州县| 温宿县| 青河县| 同德县| 灌阳县| 肇庆市| 西华县| 包头市| 台中市| 昭觉县| 石城县| 沧州市| 府谷县| 平邑县| 南京市| 乐山市| 凉城县| 雷山县| 渝北区| 周口市| 天祝| 双峰县| 延庆县| 苍梧县| 苏尼特左旗| 宜宾县| 饶阳县| 德惠市| 金乡县| 和静县| 游戏| 烟台市| 县级市| 榆中县| 孝义市| 青阳县| 偏关县| 巴林右旗|