Posts

Showing posts with the label Users and Roles

PostgreSQL Tutorial 11 -- Creating User and Granting, Revoking permissions in postgresql

Image
Below are the commands to  Create User Grant Permission Revoke Permission Listing Users Drop User                         in Postgresql.  1. Creating User:    2. Granting Privilege: 3. Revoking Privilege:  4. Listing the Users: 5. Dropping the users:  Note: until we remove the all the privileges on the user, we can't remove the users.  What is the difference between the these 2 statements.  CREATE USER youruser WITH ENCRYPTED PASSWORD 'yourpass';   create user george with password 'password';     2. How to find the list of privileges for a user in postgresql?.

Managing PostgreSQL users and roles

Image
PostgreSQL is one of the most popular open-source relational database systems. With more than 30 years of development work, PostgreSQL has proven to be a highly reliable and robust database that can handle a large number of complicated data workloads. PostgreSQL is considered to be the primary open-source database choice when migrating from commercial databases such as Oracle. Amazon Web Services (AWS) provides two managed PostgreSQL options: Amazon Relational Database Service (Amazon RDS) for PostgreSQL and Amazon Aurora PostgreSQL. In this post, I talk about some of the best practices for managing users and roles in PostgreSQL. With PostgreSQL, you can create users and roles with granular access permissions. The new user or role must be selectively granted the required permissions for each database object. This gives a lot of power to the end user, but at the same time, it makes the process of creating users and roles with the correct permissions potentially complicated. PostgreSQL ...