> 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 Fontaine | Date: 2011-01-16 20:53:47 |
| Subject: Re: walreceiver fallback_application_name |
| Previous: | From: Josh Berkus | Date: 2011-01-16 20:50:08 |
| Subject: Re: We need to log aborted autovacuums |