pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: jesse.waters@gmail.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Permission select pg_stat_replication
Date: Tue, 31 Mar 2015 09:12:52 -0400
Message-ID: <20150331131252.GI3663@tamriel.snowman.net> (raw)
In-Reply-To: <CAL0F7ned0Lbcu_FnzcoLTRS8zpQsmkA0fyw7jXOz9X=WHyJTYw@mail.gmail.com>
References: <CAL0F7ned0Lbcu_FnzcoLTRS8zpQsmkA0fyw7jXOz9X=WHyJTYw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Jesse,

* jesse.waters@gmail.com (jesse.waters@gmail.com) wrote:
>  Could someone tell me what permission is required to
> select * from pg_stat_replication; ?

Currently, you're required to have superuser rights.

> I like to setup a monitor to query database with minimal privileges necessary.

I agree 110% and am actively working to fix exactly this issue.  I hope
to have a patch in the next day or so which will allow you to GRANT
rights to such a monitor user which will allow that user to see all the
contents of pg_stat_replication.

One thing which would be really great is if you have time to test with
the patch I'm working up (it's against 9.5, but this is strictly
functionality testing and should be just in in a dev/test environment,
I wouldn't suggest running 9.5 in production, of course!).

	Thanks!

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (15+ messages)  latest in thread

Message-ID: <20150331131252.GI3663@tamriel.snowman.net>
Permalink:  ../20150331131252.GI3663@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20150331131252.GI3663@tamriel.snowman.net

 · 

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: sfrost@snowman.net, jesse.waters@gmail.com
  Subject: Re: Permission select pg_stat_replication
  In-Reply-To: <20150331131252.GI3663@tamriel.snowman.net>

* 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