From: Stephen Frost <sfrost@snowman.net>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Ronen Nofar <ronennofar@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Query on pg_settings view
Date: Wed, 15 Nov 2017 06:19:26 -0500
Message-ID: <20171115111926.GA4628@tamriel.snowman.net> (raw)
In-Reply-To: <1510740979.2424.26.camel@cybertec.at>
References: <CANV4-dgobjwre5FQbWjXEWsmv1+qX1dr9pFQstHS8mrGZ=GEMw@mail.gmail.com>
<1510740979.2424.26.camel@cybertec.at>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
Greetings,
* Laurenz Albe (laurenz.albe@cybertec.at) wrote:
> Ronen Nofar wrote:
> > I have a weird case when running a query on the pg_settings view.
> > I have two users, first one is the default user - postgres which is a superuser
> > and another one is a role which i had created, i called it test_role and it's not a superuser.
> > When I run a select on pg_settings with these two users I recieve different results.
>
> That is intentional, because some settings should only be
> visible for superusers, for example everything that has to
> do with the operating system (location of configuration file
> or socket directories).
This isn't quite correct any longer- with PG10, we have a default role
called 'pg_read_all_settings' which can be GRANT'd to other roles to
allow viewing of all settings, even those previously restricted to
superuser-only.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: sfrost@snowman.net, laurenz.albe@cybertec.at, ronennofar@gmail.com
Subject: Re: Query on pg_settings view
In-Reply-To: <20171115111926.GA4628@tamriel.snowman.net>
References: <CANV4-dgobjwre5FQbWjXEWsmv1+qX1dr9pFQstHS8mrGZ=GEMw@mail.gmail.com> <1510740979.2424.26.camel@cybertec.at> <20171115111926.GA4628@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox