PostgreSQL Setup on Ubuntu
Install PostgreSQL
Verify Installation
Create Root User for Development
Access PostgreSQL as postgres user
Create root user with password
Create development database
Exit
Configure Local Access
Edit client authentication
Change the local connection line to:
Restart PostgreSQL
Connect as Root User
Enter password: password
Common Commands
sudo systemctl start postgresql
sudo systemctl stop postgresql
sudo systemctl restart postgresql
sudo systemctl enable postgresql