grants on pg_stats_activity

From: JC Praud <brutaltruth42(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: grants on pg_stats_activity
Date: 2009-09-23 19:28:07
Message-ID: 8dc7b0c00909231228r3575513cu4264fe681526217d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

I'm trying to monitor databases with munin. For security reasons I guess it
is better to create a specialized user "munin" or like that and grant it
only the necessary rights: no superuser rights, nor write access on my
applications databases.

My problem is, this user cannot access to info of pg_stat_activity view. It
can only count the entries, but I would want to monitor waiting, and
IDLE/IDLE in transaction connections.
Is that possible ?

As seen in an old post, I tried grant select on pg_stat_activity and
pg_authid, to no avail.

The PostgreSQL version I use is the 8.3. But I will need it also on 8.4

Regards,

--
JC
Ph'nglui mglw'nafh Cthulhu n'gah Bill R'lyeh Wgah'nagl fhtagn!

Browse pgsql-general by date

  From Date Subject
Next Message Shane R. Spencer 2009-09-23 20:31:39 More straight forward method to convert seconds::bigint to interval
Previous Message Peter Geoghegan 2009-09-23 18:27:51 Re: multiple calls to dblink_connect from within pl/pgSQL function exhaust connection limit