Re: catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role
Дата
Msg-id 20090605171744.GE27531@svana.org
обсуждение исходный текст
Ответ на Re: catalog view use to find DATABASE, LANGUAGE, TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role  ("Louis Lam" <louis.lam@guardium.com>)
Ответы Re: catalog view use to find DATABASE, LANGUAGE,TABLESPACE, SCHEMA, SEQUENCE privileges granted to user or role  ("Louis Lam" <louis.lam@guardium.com>)
Список pgsql-general
On Wed, Jun 03, 2009 at 01:46:00PM -0500, Louis Lam wrote:
> So if I need to find out what table, view and function are granted to
> user or role.  I should be force to use pg_class and pg_proc?  Unless I
> can have superuser access?

Use \dv+ on the information_schema view you want and copy the query.
Take out the permission check and you're done.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

Вложения

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

Предыдущее
От: "Atul Chojar"
Дата:
Сообщение: How to automatically propagate new/changed database functions from one database to another
Следующее
От: Tom Lane
Дата:
Сообщение: Re: NOT NULL with CREATE TYPE