Re: SuperUser check in pg_stat_statements

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: rajan <vgmonnet(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: SuperUser check in pg_stat_statements
Date: 2015-10-19 16:12:40
Message-ID: 20151019161240.GW3685@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rajan,

* rajan (vgmonnet(at)gmail(dot)com) wrote:
> When monitoring using pg_stat_satements I see that postgres by default
> conceals queries executed by other users from the user who is selecting the
> pg_stat_statements view.
>
> I have edited the pg_stat_statements.c by disabling the superuser check
> function so that all queries will be visible to all users.
>
> Can this be posted as a patch to postgresql?

We don't want that to be generally viewable but rather something where
an administrator can control who can see it.

The current proposal for that is to have a set of default roles, one of
which will have this ability.

The thread on that topic starts here:

http://www.postgresql.org/message-id/flat/20150508042928(dot)GP30322(at)tamriel(dot)snowman(dot)net#20150508042928(dot)GP30322@tamriel.snowman.net

With the latest patch here:

http://www.postgresql.org/message-id/20150930111120.GM3685@tamriel.snowman.net

Thanks!

Stephen

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Janes 2015-10-19 16:26:21 Re: pg_restore cancel TODO
Previous Message Robert Haas 2015-10-19 16:06:33 Re: Dangling Client Backend Process