> I suggest pg_stat_replication do just like pg_stat_activity, which is
> return NULL in most fields if the user isn't
What session would that be, exactly?
I suggest instead either "superuser" or "replication" permissions.
-- Josh Berkus
PostgreSQL Experts Inc.
In response to
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|