It is quite easy to install the latest version of Postgres on Ubuntu. First, declare Postgres repository, create the file /etc/apt/sources.list.d/pgdg.list like this :
Import the repository signing key, and update ubuntu package lists
Then install latest postgresql (actually version 11) and its latest GUI pgadmin (actually version 4) :
Postgresql is now running, you can check that by…