Re: Help with a query

Поиск
Список
Период
Сортировка
От Bas Scheffers
Тема Re: Help with a query
Дата
Msg-id 4016.217.205.40.94.1077877946.squirrel@io.scheffers.net
обсуждение исходный текст
Ответ на Help with a query  (Alexander Cohen <alex@toomuchspace.com>)
Список pgsql-general
If the user/groups you are talking about are postgres users and groups,
this is it:

select * from pg_catalog.pg_group where (select usesysid from
pg_catalog.pg_user where usename = 'user') = any(grolist)

The place to find this kind of thing is the Postgres Internals section
(system catalogs) that desribes the system tables. "any" is an array
function which is needed as the users that belong to a group are an array
of INT user ids.

Hope that helps,
Bas.

В списке pgsql-general по дате отправления:

Предыдущее
От: Karel Zak
Дата:
Сообщение: Re: [HACKERS] ORDER BY different locales
Следующее
От: "Simon Windsor"
Дата:
Сообщение: Case of strings