Re: count of databases by role/user

Поиск
Список
Период
Сортировка
От Luca Ferrari
Тема Re: count of databases by role/user
Дата
Msg-id CAKoxK+7Q30wBmOynZR3u8HRqnSD5+yGTsoUBfu=-gU1NS826KA@mail.gmail.com
обсуждение исходный текст
Ответ на count of databases by role/user  (Pascal Cloup <ptpas059@gmail.com>)
Ответы Re: count of databases by role/user  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
On Mon, May 11, 2015 at 10:46 AM, Pascal Cloup <ptpas059@gmail.com> wrote:
> Hello,
>
> How to know, programmaticaly, the number of databases/objects depending on a
> user?
>

For databases I would join pg_database and pg_authid, for objects
pg_class and pg_authid.

Hope this helps.
Luca


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

Предыдущее
От: Pascal Cloup
Дата:
Сообщение: count of databases by role/user
Следующее
От: Tom Lane
Дата:
Сообщение: Re: count of databases by role/user