Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEvll-0004Vs-EN for pgsql-general@arkaria.postgresql.org; Wed, 15 Nov 2017 11:22:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eEvlk-0003tq-GZ for pgsql-general@arkaria.postgresql.org; Wed, 15 Nov 2017 11:22:12 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eEvjB-0007sd-6K for pgsql-general@postgresql.org; Wed, 15 Nov 2017 11:19:33 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eEvj5-0006KC-K8 for pgsql-general@postgresql.org; Wed, 15 Nov 2017 11:19:31 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id AE9BA5F795; Wed, 15 Nov 2017 06:19:26 -0500 (EST) Date: Wed, 15 Nov 2017 06:19:26 -0500 From: Stephen Frost To: Laurenz Albe Cc: Ronen Nofar , pgsql-general@postgresql.org Subject: Re: Query on pg_settings view Message-ID: <20171115111926.GA4628@tamriel.snowman.net> References: <1510740979.2424.26.camel@cybertec.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nlJVxAOHC0/ML61k" Content-Disposition: inline In-Reply-To: <1510740979.2424.26.camel@cybertec.at> User-Agent: Mutt/1.5.21 (2010-09-15) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org --nlJVxAOHC0/ML61k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 s= uperuser > > and another one is a role which i had created, i called it test_role an= d it's not a superuser. > > When I run a select on pg_settings with these two users I recieve diffe= rent results. >=20 > 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 --nlJVxAOHC0/ML61k Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJaDCK+AAoJEO1sijiDR2RVqtsQAKra0wmAr3SKmR4kBzNpk54K DfAxsu8gb4DF9Y8dldNucKJfjYsTEMQ1VDkpnScqzg/GOwt6aSo+SlUOeDotJDzh FQgvonqVu6dDm2qImaKJkezbAFznJpnfnpN7dgp6OwWsAu27yrqNDcp7sV6WPY3C uczj6YSLTP9Rz9RTIe73/DFW7jg+NDKwudKaIitKC3VGQyUwk3QHgrOOQoOW6r2K C5gj1H8/Vps+IV0/53JpMUza1yfNXVSL7Y8LRjnwmUYO4x7inKPweMRE3eVUNOKw f2RBRhPLUR0uH4L2SXdhxQG5J98ndbxba1aPmJquZ5B/RnaSBbWMWYXB/9mHrbHT g2wx7REd6s1DpS76FIS+66RsXrM11cKNWdo2cZoUq55fbhaPBXAawoWJaxhVHYwI gmqZMrm05q9F5qlFYvAyA6cz5SkqMgpxkCB7AUuoGRjqReGBHV/N0trZegbCUxrg Edqb3wc8msGYOJxCos1h+jM1iZCqwXCTTDLAqLvZgdwlBuDHdaImunff4OTaRYp4 l73/mz0GLGTtc8lx9l8UGn7muVcLwQMfYOABE1COwUNcLMDGsQT+QROLXHtg3YEM d2U3bChPG4VQunzNXMUTKgM1pm+1eN25M1o9j578t9Xpbc8mS2u8y2nIKMhfcmzy 2fgPys0ffq+q7K3pM22+ =DXET -----END PGP SIGNATURE----- --nlJVxAOHC0/ML61k--