Re: Permission select pg_stat_replication

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Permission select pg_stat_replication
Дата
Msg-id 20150331133130.GK3663@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: Permission select pg_stat_replication  ("Gilberto Castillo" <gilberto.castillo@etecsa.cu>)
Ответы Re: Permission select pg_stat_replication
Список pgsql-admin
Gilberto,

* Gilberto Castillo (gilberto.castillo@etecsa.cu) wrote:
> > * jesse.waters@gmail.com (jesse.waters@gmail.com) wrote:
> >>  Could someone tell me what permission is required to
> >> select * from pg_stat_replication; ?
> >
> > Currently, you're required to have superuser rights.
> >
> >> I like to setup a monitor to query database with minimal privileges
> >> necessary.
> >
> > I agree 110% and am actively working to fix exactly this issue.  I hope
> > to have a patch in the next day or so which will allow you to GRANT
> > rights to such a monitor user which will allow that user to see all the
> > contents of pg_stat_replication.
> >
> > One thing which would be really great is if you have time to test with
> > the patch I'm working up (it's against 9.5, but this is strictly
> > functionality testing and should be just in in a dev/test environment,
> > I wouldn't suggest running 9.5 in production, of course!).
[...]
> SET SESSION AUTHORIZATION postgres;
>
> GRANT SELECT ON pg_stat_replication TO usuario1;

This is (essentially) what I'm hoping to enable.  Note that this won't
do anything for you today as the view is already available to all users
on the system and it's actually the function underneath which is
filtering the result set.

    Thanks!

        Stephen

Вложения

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

Предыдущее
От: "Gilberto Castillo"
Дата:
Сообщение: Re: Permission select pg_stat_replication
Следующее
От: "Gilberto Castillo"
Дата:
Сообщение: Re: Permission select pg_stat_replication