Thread: Determine users and roles

Determine users and roles

From
RPK
Date:
I want to determine the usernames, privileges and roles of the users that are
created for a particular database. I am using PGSQL 8.2.3 on Windows XP. I
want to run SQL query for this.
--
View this message in context: http://www.nabble.com/Determine-users-and-roles-tf3360480.html#a9347822
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


Re: Determine users and roles

From
Jorge Godoy
Date:
RPK <rpk.general@gmail.com> writes:

> I want to determine the usernames, privileges and roles of the users that are
> created for a particular database. I am using PGSQL 8.2.3 on Windows XP. I
> want to run SQL query for this.

In PostgreSQL users aren't created per database but per cluster.

Run the equivalent of "psql -E" in your command prompt and issue a "\du".


Be seeing you,
--
Jorge Godoy      <jgodoy@gmail.com>