pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Williamson <gwilliamson39@yahoo.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: allow a user to see current_query in pg_stat_activity in 8.4
Date: Thu, 13 Dec 2012 18:59:27 -0800 (PST)
Message-ID: <1355453967.41645.YahooMailNeo@web125905.mail.ne1.yahoo.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

This seems like a question whose answer must be right in front of me, but I am not seeing it.

We want to create a role used by a monitor to check for "<IDLE> 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 "<insufficient privilege>"

I've trolled the archives and postgres docs with no success.

Could some kind soul point me in the right direction ?

Thanks!

Greg Williamson

view thread (5+ messages)  latest in thread

Message-ID: <1355453967.41645.YahooMailNeo@web125905.mail.ne1.yahoo.com>
Permalink:  ../1355453967.41645.YahooMailNeo@web125905.mail.ne1.yahoo.com/
Also on:    postgresql.org/message-id/1355453967.41645.YahooMailNeo@web125905.mail.ne1.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: gwilliamson39@yahoo.com
  Subject: Re: allow a user to see current_query in pg_stat_activity in 8.4
  In-Reply-To: <1355453967.41645.YahooMailNeo@web125905.mail.ne1.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox