Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1epE2Z-0004JY-Px for pgsql-docs@arkaria.postgresql.org; Fri, 23 Feb 2018 14:09:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epE2Y-0003TN-En for pgsql-docs@arkaria.postgresql.org; Fri, 23 Feb 2018 14:09:34 +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 1epE2Y-0003TD-5i for pgsql-docs@lists.postgresql.org; Fri, 23 Feb 2018 14:09:34 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1epE2V-0001iy-R2 for pgsql-docs@lists.postgresql.org; Fri, 23 Feb 2018 14:09:32 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id CCE0F1358; Fri, 23 Feb 2018 09:09:30 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Fri, 23 Feb 2018 09:09:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=7w52UK7LiGe7U5J8ib1gSU9gGDvz7HYSdvekYOY0a70=; b=wUIt6to4 vXGwhc0hNFbhkQWkn41ydEABPc6w55/TMC/eQ8WL/kvbouzzl70c+GJ0D4VdSwBS 8e8VNy1QoOErWkT+SDwU9iDoUBKLF5VDJ900LdciUXj3TI/rZbM1Q/9qAwdcof/B /Drhto1epFzfMBhHgxxTWaCl8eb6QVr66C+A6XNKGJiPnGZF5ugYzjim3LBFtep+ lzXzBe9MNdvMigJaEEnM8cKnnfvcEqfD0nZUwK/QXrzmLMoVD9QbUHPQl8ljlfxy Ztv/dBmkrNSSeFYyO+w6Ewwk9abYblGzjyHqQUk2heeHjItGe2Fayl3e55h1aaqD fFsBBEJnNnO2Yw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=7w52UK7LiGe7U5J8ib1gSU9gGDvz7 HYSdvekYOY0a70=; b=Va3dWqNQXklOOKmP/tW9Ga4/EZ/P+bwCgdLHihSPftgZk edSFWcdE8v0attGNm1YQRFrbzt3jcWAj/8WJ9EZxN377IDwsct5NE7Ib0bdt7P7d +cBGu28ZH5EdLri44TR8vnuPA9O6rffxrr+2XMmpKDwrV/vNWbIOOhQ36QRIHD6E 6mzkoSa+4fxKRWaB5hvfYhT+h+tuOe/grvL42B7YdaJHomaDKNSo+G0h2KpWCrT4 PALDCn1bJ7oWQsmL6Om6aTVLa7CkYsVgfsz5Z/BQX5lU0Vh01KS9noMpeJ4GhIA/ gF0gr4pvmUrTFcBwCWrAddpGN7aJfZBy43+JRMptg== X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 45C857E321; Fri, 23 Feb 2018 09:09:28 -0500 (EST) Date: Fri, 23 Feb 2018 23:09:26 +0900 From: Michael Paquier To: jobyjc@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: pg_hba_file_rules permission issue Message-ID: <20180223140926.GC9580@paquier.xyz> References: <151937888789.1456.18376747263583744706@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Qrgsu6vtpU/OV/zm" Content-Disposition: inline In-Reply-To: <151937888789.1456.18376747263583744706@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Qrgsu6vtpU/OV/zm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 23, 2018 at 09:41:27AM +0000, PG Doc comments form wrote: > According to the documentation, I assume normal users will be able to view > pg_hba_file_rules once they are granted select privileges. But for the > privileged user it's giving following error while trying to view records: >=20 > ERROR: permission denied for function pg_hba_file_rules > SQL state: 42501 I think that you need as well execution rights on pg_hba_file_rules() to give access to it. -- Michael --Qrgsu6vtpU/OV/zm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlqQIJYACgkQnvQgOdby QH0u8w//TKp50DlbfIW6AslkWix4TmUCBtZ7PSMYKHfxM+Mz+GrvexzFCZMG1PQ8 cFY/GCOr2aq1kFBBL3yHh1wqDXaapi8xAxrZ5h46MHpIohKhHy4rTZCKp55azOVB 9eKWxZi1YPaWlZq/e9Bp0SmiMWLu/4TUzy9kyuPf5Vj/da1brScB1dqUrAsIp/JW WKFTiJPFLuZKruEotBMZyCbc32j0l5Rsm0aSUTjkRWBtE3LwZRy2XxgxsFaOQSH4 4cwXjONAk+nDXXW49lLUFFgpMiSSU3b/iyOeGW+YaaON/D+wgNJctDhzFl1R9U1q Zs5bBKNGEBJ2zIwqd88t3drDfSrOkJD96sMRKMmITszH3DdZwjwT4RFkkchuDAUC jlo77brNY+8dlSg6OjLeYFXMrSPytg/iLbG3ijQS0OGHUddRZn2L749/kR2un0be i5j5Rh4vegEW1JKE9h4j4V5T6gCu6DZTToXuPUKvuaod9jZOxVBwXC9FaHyteNMX j2mOmOkBDg5xSCtiDq7rQ3jCwjR7rgElsZngR1xVZbZRU+s085BzYNBoussaERdh GMqOabGB3IaVoxFWfb9L+rXn9/rfB81OMza5H0wits9D7grOJM6rV88S1j6TJR+a EA+VNc304Dvcffj6bfalHl1Mu/ymBBnSq/7c3xJC2VvZ57ugT1M= =sSLW -----END PGP SIGNATURE----- --Qrgsu6vtpU/OV/zm--