Re: find out all users under specific user

Поиск
Список
Период
Сортировка
От Ben K.
Тема Re: find out all users under specific user
Дата
Msg-id Pine.GSO.4.64.0605201059080.3823@coe.tamu.edu
обсуждение исходный текст
Ответ на find out all users under specific user  ("ashok@kalculate.com" <ashok@kalculate.com>)
Список 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 по дате отправления:

Предыдущее
От: "Ben K."
Дата:
Сообщение: Re: lock a database from new connections, without modifying
Следующее
От: Jeff Frost
Дата:
Сообщение: Re: does wal archiving block the current client connection?