Privilege for seeing queries using pg_stat_get_backend_activity - Mailing list pgsql-general

From Marc Munro
Subject Privilege for seeing queries using pg_stat_get_backend_activity
Date
Msg-id 1137691032.18509.6.camel@bloodnok.com
Whole thread Raw
Responses Re: Privilege for seeing queries using pg_stat_get_backend_activity
Re: Privilege for seeing queries using pg_stat_get_backend_activity
List 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


Attachment

pgsql-general by date:

Previous
From: vishal saberwal
Date:
Subject: Re: Rollback to Previous Version
Next
From: Michael Fuhr
Date:
Subject: Re: create plperlu langage fails