ubuntu setup posgre code example
Example 1: ubuntu install and configure postgres server
sudo apt update
sudo apt install postgresql postgresql-contrib
Example 2: ubuntu connect to postgres
sudo su - postgres
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo su - postgres