I have postgres database. I want the list of users with access privileges they are being assigned.
I tried to find query and also looked in to psql command line help. (\nu and all) but I haven't found any usefull information.
Is anyone knows about that can help me out.
Thanks.
Here as a supplement to the previous.
To check the privileges of user by following:
SELECT * FROM pg_user;
As the same way, to check roles:
SELECT * FROM pg_roles;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With