Return to PostgreSQL, Managing PostgreSQL, brew install postgresql
PostgreSQL is in the official repositories of the distribution.
Then, open a terminal emulator and run the following Linux command line command:
:~$ sudo apt install postgresql-11
After the installation is finished, Ubuntu will start the PostgreSQL service. It will also configure the service to start automatically. So we still have to verify the status of the service.
:~$ sudo systemctl status postgresql
Fair Use Source: https://www.osradar.com/how-to-install-postgresql-on-ubuntu-19-04/
https://www.startpage.com/do/dsearch?query=install+postgresql+on+ubuntu19