Re: about privileges on pg_stat_activity columns

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: about privileges on pg_stat_activity columns
Дата
Msg-id 3073cc9b0812040554p22118f55g725fee61d432475d@mail.gmail.com
обсуждение исходный текст
Ответ на Re: about privileges on pg_stat_activity columns  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
On Thu, Dec 4, 2008 at 4:02 AM, Richard Huxton <dev@archonet.com> wrote:
> Jaime Casanova wrote:
>>
>> we created an user to him and give him privileges to pg_locks and
>> pg_stat_activity (and the functions pg_stat_activity is calling) but
>> still he see the columns that comes from the functions as null... is
>> there a way to give him access to that data without give him
>> superuser?
>
> I'd create a view or some functions with "security definer" privileges.
> That way you can provide precisely the access needed.
>

exactly what i did... thanks to both

--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157

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

Предыдущее
От: paulo matadr
Дата:
Сообщение: pg_stat_activity
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: serial