- 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
- Visual C++串口通信開發入門與編程實踐
- PostgreSQL for Data Architects
- Apache Spark 2.x Machine Learning Cookbook
- Python Deep Learning
- Django Design Patterns and Best Practices
- TypeScript項目開發實戰
- C語言程序設計學習指導與習題解答
- Mastering Apache Maven 3
- Scala編程實戰(原書第2版)
- Node.js Design Patterns
- Java EE核心技術與應用
- INSTANT Yii 1.1 Application Development Starter
- C++編程兵書
- SQL Server 入門很輕松(微課超值版)
- 計算語言學導論