Articles → POSTGRESQL → Manage Users In Postgres Database Using Psql

Manage Users In Postgres Database Using Psql






Get The List Of Users On A Database




Picture showing the command to get the list of database users
Click to Enlarge

select 
  * 
from 
  pg_user;



Create A New User




Picture showing the command to create the new user
Click to Enlarge

create user <user_name> with password ‘<password>’;



Grant Permission




grant all on <database_name> to <user>



Posted By  -  Karan Gupta
 
Posted On  -  Monday, October 21, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250