Privilege for seeing queries using pg_stat_get_backend_activity

From: Marc Munro <marc(at)bloodnok(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Privilege for seeing queries using pg_stat_get_backend_activity
Date: 2006-01-19 17:17:12
Message-ID: 1137691032.18509.6.camel@bloodnok.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I want certain users to be able to examine running queries using
pg_stat_get_backend_activity. Unfortunately, this will only show other
users' activity if you have superuser privilege.

I do not want to give monitoring users superuser privilege, but I do
need to allow them to perform monitoring tasks.

I've tried tricks with security definer functions but this does not help
as pg_stat_get_backend_activity explicitly checks for the caller being a
superuser.

Aside from implementing my own version of pg_stat_get_backend_activity
in C, does anyone have any suggestions?

Should there be a standard privilege that allows this (please say yes)?

__
Marc

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2006-01-19 17:30:11 Re: create plperlu langage fails
Previous Message vishal saberwal 2006-01-19 17:05:37 Re: Rollback to Previous Version