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

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.

主站蜘蛛池模板: 化隆| 稻城县| 明溪县| 泽普县| 会宁县| 宣威市| 肇庆市| 应城市| 永济市| 呼图壁县| 台东县| 榆林市| 临清市| 肇州县| 紫阳县| 南乐县| 阜城县| 治多县| 六安市| 宁晋县| 昌邑市| 淳化县| 安徽省| 吐鲁番市| 宜丰县| 蓬莱市| 自治县| 通化市| 陆良县| 石柱| 涟水县| 金阳县| 防城港市| 潞城市| 克山县| 竹山县| 吴川市| 滦南县| 青浦区| 从化市| 宜阳县|