Installing PostgreSQL on Ubuntu
Run the following commands to install PostgresSQL on Ubuntu.
1. sudo apt update
2. sudo apt install postgresql postgresql-contrib

Once it is installed, use the following commands to run it.
1. sudo -u postgres -i
2. psql

To exit, type the following commands in succession:
1. \q
2. exit

1
