Re: allow a user to see current_query in pg_stat_activity in 8.4

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: allow a user to see current_query in pg_stat_activity in 8.4
Дата
Msg-id
18307.1355454996@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
allow a user to see current_query in pg_stat_activity in 8.4 Greg Williamson <gwilliamson39@yahoo.com>
Re: allow a user to see current_query in pg_stat_activity in 8.4 Tom Lane <tgl@sss.pgh.pa.us>
Re: allow a user to see current_query in pg_stat_activity in 8.4 Greg Williamson <gwilliamson39@yahoo.com>
Re: allow a user to see current_query in pg_stat_activity in 8.4 ynux <ynux@gmx.net>
Re: allow a user to see current_query in pg_stat_activity in 8.4 Robert Treat <rob@xzilla.net>
Greg Williamson  writes:
> We want to create a role used by a monitor to check for " in Transaction" with the most restrictive permissions we can on a 8.4.13 instance.

> The user has been granted connect privilege to the database and some limited permissions to user tabhles that need to be monitored. But pg_stat_activity shows only ""

Yup.  You can only see the query of another session if (1) you are a
superuser, or (2) you are the same user the other session is logged in
as.  Table permissions have nothing to do with this.

			regards, tom lane

В списке pgsql-admin по дате отправления
От: Greg Williamson
Дата:
От: Greg Williamson
Дата:
FAQ