Written in C, PostgreSQL which is also known as Postgres is one of the most popular relational database management systems. macOS server has it as default database and is also available for other operating systems such as Windows, FreeBCD, OpenBCD and Linux. As PostgreSQL is one of the most used database management systems in the world, it is used as the backbone of many small to large applications and software’s.![Ubuntu setup postgresql Ubuntu setup postgresql](https://t.gyazo.com/teams/500rockets/eeb281bbca758401bb904c84a8590d8c.jpg)
![Ubuntu Ubuntu](https://scalegrid.io/blog/wp-content/uploads/2019/09/Which-Is-The-Best-PostgreSQL-GUI-OmniDB-UI-ScaleGrid-Blog.png)
The current version of LibreOffice is 6.2, although the repo for your particular operating system may be slightly behind this. I use Ubuntu 18.04 on my development laptop and I have version: 6.0.7.3. In order to connect to postgresql the following components must be installed. LibreOffice Base; The postgreSQL sdbc connector. Install GUI Desktop in WSL2 Ubuntu 20.04 LTS in Windows 10. First check if you Windows 10 Version supports WSL 2 or not checkout the link Link.
Even though I feel working in command-line is best way to learn anything in the world of application and software development, there are some limitations while working with databases in command-line. It requires great experience of working in command-line or it could get really messy for newbies as well as for professionals.
- Coding can be messy and confusing through command-line.
- Managing and browsing through databases and tables could be difficult to handle.
- Not everyone likes command-line window and finds it difficult to work on.
But GUI clients overcome these shortcomings of working in command-line and in addition to that offers some really great features which makes whole task of handling databases easier. Easy to use user interface, shortcut keys, easy access to files and databases are one of the key features that make GUI clients popular over command-line methods. So in this article I’m going to give you 5 best GUI clients for PostgreSQL which you can download and install on Ubuntu and other Linux distributions.
pgAdmin
pgAdmin is one of the most popular and feature-rich database administration and development platform especially developed for PostgreSQL. It is free and open-source GUI client and available for Ubuntu including Windows and Mac OS X.
pgAdmin is a feature-rich PostgreSQL client which supports multiple PostgreSQL versions, color syntax highlighting, procedural language debugger, create, view and edit all most widely used PostgreSQL objects such as database, columns, triggers, indexes and many more.
Apart from that it offers graphical query planning tool, a dashboard to monitor all the activities, highly customizable user interface, and ability to access remotely, etc.
To install pgAdmin on Ubuntu, run the following commands one-by-one in Terminal. Follow the instructions as prompted.
$ wget--quiet-O - https://www.postgresql.org/media/keys/ACCC4CF8.asc |
sudoapt-key add -
sudosh-c'echo 'deb http://apt.postgresql.org/pub/repos/apt/
`lsb_release -cs`-pgdg main' >> /etc/apt/sources.list.d/pgdg.list'
$ sudoapt-get update
$ sudoapt-get install pgadmin4 pgadmin4-apache2 -y
sudoapt-key add -
sudosh-c'echo 'deb http://apt.postgresql.org/pub/repos/apt/
`lsb_release -cs`-pgdg main' >> /etc/apt/sources.list.d/pgdg.list'
$ sudoapt-get update
$ sudoapt-get install pgadmin4 pgadmin4-apache2 -y
Navicat
Devloped by PremiumSoft CyberTech Ltd, Navicat is graphical database management and development software for popular database languages like PostgreSQL, MySQL, MariaDB, SQLite, Oracle and many more. It is feature-rich database management tool which comes with intuitive user interface.
It is powerful and yet easy to use database management tool which you will definitely love to work on. It is comes with dedicated SQL editor and builder which helps you perform the database programming with ease. Also you can assign the scheduled jobs to navicat and you will get email notification when it performs assigned job.
![Ubuntu setup postgresql Ubuntu setup postgresql](https://t.gyazo.com/teams/500rockets/eeb281bbca758401bb904c84a8590d8c.jpg)
Yes it is not free unlike others but you can always try its free version and then decide whether to buy it or not. One thing that might lure you to use different PosgreSQL tool is that you need to buy separate license for PosgreSQL and MySQL platforms.
DataGrip
DataGrip is a multi-platform database administration tool developed. Devloped by JetBrains which is popular for producing excellent development tools for software programmers and developers. It ships-in with various popular database management tools such as Amazon Redshift, Apache Hive, Azure SQL Database, Microsoft SQL Server and includes PostgreSQL.
When it comes to features, it sports very friendly user interface which you will find very easy to use, context-sensitive code compilation, automatic bug detection, and version control integration. Apart from that it has powerful text editor which is very smart and advance, light and dark themes, highly customizable interface and import/export support.
DataGrip has everything a database administrator needs, but there is one thing that might lure you to use other clients and i.e. it is not free and slightly on expensive side.
OmniDB
OmniDB is an open-source web tools which offers graphical environment for Database Management. Till the time of writing this supports PosgreSQL 11 and older versions, Oracle, MySQL, MariaDB, and Firebird. It is a lightweight yet powerful browser based Database Management tool.
Despite not having dedicated interface its browser based user interface is quite responsive and easy to navigate. Smart SQL editor is one of the pros of this database tool which is highly configurable and offers contextual query compilation. As it has multi-user supports, developers have made safety a priority with encrypted personal information support.
This tool makes the task of database management quite easy with interactive and responsive tables. All-in-all it is quite a package of database management tool.
DBeaver
DBeaver is a free and cross-platform PostgreSQL client and database administration tool. It is developed by open-source community especially for developers, database administrators, and analysts.
Apart from PostgreSQL, it supports other widely used database management tools such as SQL, SQLite, Firebird, Oracle and many others. It comes with simple yet attractive user interface which is very easy to use. Talking about the features, it offers connection to various data sources, visual query builder, metadata browser, ER diagrams, data and metadata search.
So these are the 5 Best GUI clients for PostgreSQL which you can download and use on Ubuntu. Feel free to share your views and queries at @LinuxHint and @SwapTirthakar.
Источник: linuxhint.com
PostgreSQLUbuntuThe following steps demonstrate how to install PostgresSQL on Ubuntu 18.04.
There are a couple of ways to go about installing Postgres on Ubuntu.
But before we start jumping in and installing it, did you know that by default, PostgreSQL is already available in Ubuntu 18.04?
So one option is to go right ahead and use the version that’s already included with Ubuntu.
But unless you have reason not to, you will probably want to run the latest version of PostgreSQL, in which case you’ll want to download and install the latest version.
This tutorial covers both options.
Check your Current PostgreSQL Version
It doesn’t hurt to check your current Postgres version before you go installing anything.
Open up your Terminal and run the following command:
Example result:
Here, my local Ubuntu install has the Postgres version 10 package. At the time of running this example, PostgreSQL 13 is available (Postgres 13.1 to be precise).
So I’m going to go ahead and install the latest version.
![Ubuntu Ubuntu](https://scalegrid.io/blog/wp-content/uploads/2019/09/Which-Is-The-Best-PostgreSQL-GUI-OmniDB-UI-ScaleGrid-Blog.png)
Install the Latest Version of PostgreSQL
To install the latest version of PostgreSQL, use the PostgreSQL Apt Repository. You can do that by following the steps below.
Create the file repository configuration:
Import the repository signing key:
Update the package lists:
Install PostgreSQL:
The latest version of PostgreSQL is now installed on Ubuntu 18.04.
Once it has been installed, the details of your PostgreSQL installation is displayed. You’ll see things like version, port, the data and log directories, etc
Start Postgresql Ubuntu
The above command installs the latest version of PostgreSQL. If you want to install a specific version, append
postgresql
with a hyphen, followed by the version number, like this: postgresql-13
. The PostgreSQL Apt Repository integrates with your normal systems and patch management, and provides automatic updates for all supported versions of PostgreSQL throughout the support lifetime of PostgreSQL.
How to Install the Local PostgreSQL Version (Option 2)
If you prefer to install your local version of PostgreSQL, you can do so with the following command:
That’s all there is to installing your local version of PostgreSQL on your Ubuntu 18.04 machine.
Connect to PostgreSQL
You can connect to PostgreSQL by running the following command:
That command uses the postgres user to connect via the psql command-line utility.
Ubuntu Postgresql Client Install
After running that command, you should see something like this:
That means you’ve successfully connected to PostgreSQL with the psql utility.
Postgresql Gui Ubuntu Tutorial
You can now create databases, run queries, run psql commands, etc.
For example, you could run the following psql backslash command to get information about your current connection: Smartday 3 2.
Running that command should return something like this:
By default, PostgreSQL creates a postgres user and a corresponding postgres database.
When you connect using the postgres user, by default, you’re connected to the postgres database.
You can also connect to Postgres using GUI tools such as PgAdmin, DBeaver, Azure Data Studio (using its PostgreSQL extension).
To install Azure Data Studio, see How to Install Azure Data Studio on Ubuntu 18.04.