pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Ronen Nofar <ronennofar@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Query on pg_settings view
Date: Wed, 15 Nov 2017 11:16:19 +0100
Message-ID: <1510740979.2424.26.camel@cybertec.at> (raw)
In-Reply-To: <CANV4-dgobjwre5FQbWjXEWsmv1+qX1dr9pFQstHS8mrGZ=GEMw@mail.gmail.com>
References: <CANV4-dgobjwre5FQbWjXEWsmv1+qX1dr9pFQstHS8mrGZ=GEMw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

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).

Yours,
Laurenz Albe


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (3+ messages)  latest in thread

Message-ID: <1510740979.2424.26.camel@cybertec.at>
Permalink:  ../1510740979.2424.26.camel@cybertec.at/
Also on:    postgresql.org/message-id/1510740979.2424.26.camel@cybertec.at

 · 

reply

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: laurenz.albe@cybertec.at, ronennofar@gmail.com
  Subject: Re: Query on pg_settings view
  In-Reply-To: <1510740979.2424.26.camel@cybertec.at>
  References: <CANV4-dgobjwre5FQbWjXEWsmv1+qX1dr9pFQstHS8mrGZ=GEMw@mail.gmail.com> <1510740979.2424.26.camel@cybertec.at>

* 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