Postgresql in Putty
Postgresql in Putty
** PRE – REQUIIREMENTS**:
• Create two databases, and schemas for each. Create tables in both the
databases.
• Make a Super user and a Read-only user for the data.
- A Super user is the one which can have all the access in the database.
i.e, a Super user can read, update, delete, and drop the values in the
corresponding tables.
- A Read-only user is the one who can see all the data from the tables but
cannot edit such as update, delete, or drop the values in the table.
• Database1 user shouldn’t be able access the data from the Database2
** COMPLETE SETUP **
STEP 1: Set Up PostgreSQL
- sudo apt update
- sudo apt install postgresql postgresql-contrib -y
- enter the user id and password of the server in putty