- 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
- Mastering matplotlib
- Android NDK Beginner’s Guide
- 深入理解Java7:核心技術與最佳實踐
- Python王者歸來
- OpenShift在企業中的實踐:PaaS DevOps微服務(第2版)
- The DevOps 2.5 Toolkit
- Visual Basic程序設計實驗指導(第二版)
- jQuery Mobile Web Development Essentials(Second Edition)
- Responsive Web Design with jQuery
- Head First Kotlin程序設計
- Learning iOS Penetration Testing
- Apache Kafka 1.0 Cookbook
- PHP典型模塊與項目實戰大全
- Java Web程序員面試筆試寶典
- 羅布樂思開發官方指南:Lua 語言編程