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

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.

主站蜘蛛池模板: 海伦市| 射洪县| 英吉沙县| 凭祥市| 乃东县| 攀枝花市| 安龙县| 晴隆县| 汝城县| 开封县| 柳河县| 托里县| 大竹县| 昌邑市| 通辽市| 台北市| 衡山县| 吉水县| 马关县| 衡阳县| 陵川县| 西林县| 临高县| 乌兰察布市| 易门县| 峡江县| 垫江县| 长岭县| 嫩江县| 洪湖市| 大邑县| 电白县| 大洼县| 长葛市| 宝兴县| 泸水县| 吴旗县| 普兰县| 眉山市| 张家界市| 南丹县|