Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YpNHp-0005S6-QG for pgsql-hackers@arkaria.postgresql.org; Mon, 04 May 2015 20:48:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YpNHp-0003ad-A8 for pgsql-hackers@arkaria.postgresql.org; Mon, 04 May 2015 20:48:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YpNHo-0003aX-GP for pgsql-hackers@postgresql.org; Mon, 04 May 2015 20:48:20 +0000 Received: from mout.gmx.net ([212.227.15.18]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1YpNHl-0006yV-9Y for pgsql-hackers@postgresql.org; Mon, 04 May 2015 20:48:19 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LlESk-1ZMmtM2bjS-00b56a for ; Mon, 04 May 2015 22:48:14 +0200 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id D0B94204D1 for ; Mon, 4 May 2015 16:48:12 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 04 May 2015 16:48:12 -0400 X-Sasl-enc: v7umnpmfdN8Z0PuLRzib5PyduFXwaBwbpEBcARmaSkhM 1430772492 Received: from [192.168.1.147] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id 93B5CC00015; Mon, 4 May 2015 16:48:12 -0400 (EDT) Message-ID: <5547DB0A.2020904@gmx.net> Date: Mon, 04 May 2015 16:48:10 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Andres Freund , Greg Stark CC: Haribabu Kommi , Pavel Stehule , Abhijit Menon-Sen , PostgreSQL-development Subject: Re: Providing catalog view to pg_hba.conf file - Patch submission References: <55024C6C.6000207@gmx.net> <20150501163358.GE16366@awork2.anarazel.de> In-Reply-To: <20150501163358.GE16366@awork2.anarazel.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:bRts4rQ+TauMQ9YB9PY+DvC0Fr+Ignr5WZzd7nB2ZEHJKXk567k gZEHHLB0tX5nbht+zemdGWkPIQ7J6AI0M44GO3BvD843FeM1IMw8NMxKnCVw7VL7uP1pydn PGrJ89Iu61HjLMY9EvBjcCySEq1nQeQxoQ9obMNJ0i5JjE1eh3gAiHDUT4ZW+c7OFH6O0A2 3Z7IQ/L92NmVJkCAxOiJQ== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 5/1/15 12:33 PM, Andres Freund wrote: > On 2015-04-08 19:19:29 +0100, Greg Stark wrote: >> I'm not sure what the best way to handle the hand-off from patch >> contribution to reviewer/committer. If I start tweaking things then >> you send in a new version it's actually more work to resolve the >> conflicts. I think at this point it's easiest if I just take it from >> here. > > Are you intending to commit this? It still looks quite dubious to me. The more I test this, the more fond I grow of the idea of having this information available in SQL. But I'm also growing more perplexed by how this the file is mapped to a table. It just isn't a good match. For instance: What is keyword_databases? Why is it an array? Same for keyword_users. How can I know whether a given database or user matches a keyword? What is compare_method? (Should perhaps be keyword_address?) Why is compare method set to "mask" when a hostname is set? (Column order is also a bit confusing here.) I'd also like options to be jsonb instead of a text array. Ultimately, I don't see how this is better than just showing the raw file. I don't see a sensible way to compute answers to questions such as "What is the authentication method for user X from IP address Y." If I can't do that, what's the point of having a processed version? -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers