Re: SuperUser check in pg_stat_statements

From: "Shulgin, Oleksandr" <oleksandr(dot)shulgin(at)zalando(dot)de>
To: rajan <vgmonnet(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SuperUser check in pg_stat_statements
Date: 2015-10-19 15:22:48
Message-ID: CACACo5TZYzzuiHQKa7jXAi1pgZLJuy6bdThChO3cMcp+QGWWCw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Oct 19, 2015 at 5:15 PM, rajan <vgmonnet(at)gmail(dot)com> wrote:

> Hello,
>
> 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.
>

Well, you could see that's by design. What problem are you trying to solve
with that?

> Can this be posted as a patch to postgresql?
>

This is not going to be accepted.

--
Alex

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-10-19 15:28:34 Re: pg_restore cancel TODO
Previous Message Masahiko Sawada 2015-10-19 15:17:53 Re: Support for N synchronous standby servers - take 2