Re: find out all users under specific user - Mailing list pgsql-admin

From Ben K.
Subject Re: find out all users under specific user
Date
Msg-id Pine.GSO.4.64.0605201059080.3823@coe.tamu.edu
Whole thread Raw
In response to find out all users under specific user  ("ashok@kalculate.com" <ashok@kalculate.com>)
List pgsql-admin
> I want to find out all the users under a specific user.
> postgres is a superuser of postgresql,
> under in postres user i made one user ABC and
> under this ABC user i made XYZ,MNO,IJK users.
>
> Now i want to find out all the users, which r exist
> under in ABC user so what is the query for it?

select relname, array_to_string(relacl,',') as acl from pg_class
where array_to_string(relacl,',') ~ '/ABC[,$]';


HTH

Ben K.
Developer
http://benix.tamu.edu

pgsql-admin by date:

Previous
From: "Ben K."
Date:
Subject: Re: lock a database from new connections, without modifying
Next
From: Jeff Frost
Date:
Subject: Re: does wal archiving block the current client connection?