Re: restrict pg_stat_ssl to superuser?

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: restrict pg_stat_ssl to superuser?
Date: 2019-02-19 15:57:52
Message-ID: 1d1bf3a7-955e-ce6b-de99-b900136ca789@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2019-02-18 04:58, Michael Paquier wrote:
> On Fri, Feb 15, 2019 at 02:04:59PM +0100, Peter Eisentraut wrote:
>> We could remove default privileges from pg_stat_get_activity(). Would
>> that be a problem?
>
> I don't think so, still I am wondering about the impact that this
> could have for monitoring tools calling it directly as we document
> it..

Actually, this approach isn't going to work anyway, because function
permissions in a view are checked as the current user, not the view owner.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2019-02-19 15:59:35 Re: Some thoughts on NFS
Previous Message Robert Haas 2019-02-19 15:45:47 Re: Some thoughts on NFS