Skip site navigation (1) Skip section navigation (2)

Re: pg_stat_replication security

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_stat_replication security
Date: 2011-01-16 20:51:56
Message-ID: 4D335A6C.2020507@agliodbs.com (view raw or flat)
Thread:
Lists: pgsql-hackers
> I suggest pg_stat_replication do just like pg_stat_activity, which is
> return NULL in most fields if the user isn't
> (superuser||same_user_as_that_session).

What session would that be, exactly?

I suggest instead either "superuser" or "replication" permissions.

-- 
                                  -- Josh Berkus
                                     PostgreSQL Experts Inc.
                                     http://www.pgexperts.com

In response to

Responses

pgsql-hackers by date

Next:From: Dimitri FontaineDate: 2011-01-16 20:53:47
Subject: Re: walreceiver fallback_application_name
Previous:From: Josh BerkusDate: 2011-01-16 20:50:08
Subject: Re: We need to log aborted autovacuums

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group