- Learning PostgreSQL 11
- Salahaldin Juba Andrey Volkov
- 211字
- 2021-07-02 13:11:45
Client installation
If you have a PostgreSQL server already installed and you need to interact with it, you need to install the postgresql-client software package. In order to do so, open a Terminal and execute the following command:
sudo apt-get install postgresql-client-11
With the installation of postgresql-client-11, several tools are installed, including the PostgreSQL interactive Terminal (psql), which is a very powerful interactive frontend tool for PostgreSQL. To see the full list of installed programs, you can browse the installation directory. Note that the installation path might vary depending on the installed PostgreSQL version and the operating system:
$ls /usr/lib/postgresql/11/bin/
clusterdb createdb createuser dropdb dropuser pg_basebackup pg_dump pg_dumpall pg_isready pg_receivewal pg_recvlogical pg_restore psql reindexdb vacuumdb
To connect to an existing PostgreSQL server using psql, specify the connection string, which might include the host, the database, the port, and the username.
Another powerful frontend graphical user interface (GUI) tool is pgAdmin4, which is used for PostgreSQL administration and development. pgAdmin is favored by beginners, while psql can be used for shell scripting.
pgAdmin4 has many features, such as cross-platform, web-based, server, and desktop modes. To install pgAdmin in desktop mode, run the following command:
sudo apt-get install pgadmin4
To run it, simply execute the following command in the Terminal:
pgadmin4
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- JavaScript前端開發模塊化教程
- Learning ROS for Robotics Programming(Second Edition)
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- C#程序設計(慕課版)
- Blender 3D Incredible Machines
- Nexus規模化Scrum框架
- Building RESTful Python Web Services
- Apache Spark 2.x for Java Developers
- Node Cookbook(Second Edition)
- GitHub入門與實踐
- QGIS 2 Cookbook
- R的極客理想:量化投資篇
- UML基礎與Rose建模實用教程(第三版)
- Web前端測試與集成:Jasmine/Selenium/Protractor/Jenkins的最佳實踐