Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YTH2w-0006MN-AC for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Mar 2015 21:41:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YTH2v-00012o-IN for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Mar 2015 21:41:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YTH2t-00012X-B8 for pgsql-hackers@postgresql.org; Wed, 04 Mar 2015 21:41:35 +0000 Received: from mout.gmx.net ([212.227.17.20]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YTH2p-0004A2-3k for pgsql-hackers@postgresql.org; Wed, 04 Mar 2015 21:41:34 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Lkiqm-1Xt6se2Sbk-00aZ2e for ; Wed, 04 Mar 2015 22:41:28 +0100 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 5AEA920B8E for ; Wed, 4 Mar 2015 16:41:24 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Wed, 04 Mar 2015 16:41:25 -0500 X-Sasl-enc: 694xeSf8ae7fQmhmSCuxrWF2O8FE/aejh4g1yF6wVOr1 1425505285 Received: from [192.168.1.70] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id 42393C00297; Wed, 4 Mar 2015 16:41:25 -0500 (EST) Message-ID: <54F77C04.4060708@gmx.net> Date: Wed, 04 Mar 2015 16:41:24 -0500 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Jim Nasby , Greg Stark CC: Abhijit Menon-Sen , PostgreSQL-development , "Prabakaran, Vaishnavi" , Magnus Hagander , Jaime Casanova Subject: Re: Providing catalog view to pg_hba.conf file - Patch submission References: <82897A1301080E4B8E461DDAA0FFCF14DDE1@SYD1216> <82897A1301080E4B8E461DDAA0FFCF14FD6E@SYD1216> <20140629165554.GA5984@toroid.org> <20140630070646.GY31357@toroid.org> <54F5F7DD.8020501@BlueTreble.com> <54F64F13.6010509@BlueTreble.com> In-Reply-To: <54F64F13.6010509@BlueTreble.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:F05SMiFqPXW9UHslKYHocMRhT8/JWm77293T2+mMIYxXy5o6XV5 B561R0FHksci9Nq0r7gmJmHDhHSZnrtdvg8atpT4S3ncNQP0zBs7U+cBoKbmF/BclUg68hL j9JqVE9tvNKAQyShjbeZ5RMcrWXtIE+uXw1i5tS6lbySPdVuXTUbxCBENFxM1D0nXVvmq4g 6WlNIDLps8iRtI49ljQQQ== 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 3/3/15 7:17 PM, Jim Nasby wrote: > I think we're screwed in that regard anyway, because of the special > constructs. You'd need different logic to handle things like +role and > sameuser. We might even end up painted in a corner where we can't change > it in the future because it'll break everyone's scripts. Yeah, I'm getting worried about this. I think most people agree that getting a peek at pg_hba.conf from within the server is useful, but everyone seems to have quite different uses for it. Greg wants to join against other catalog tables, Jim wants to reassemble a valid and accurate pg_hba.conf, Josh wants to write an editing tool. Personally, I'd like to see something as close to the actual file as possible. If there were an obviously correct way to map the various special constructs to the available SQL data types, then fine. But if there isn't, then we shouldn't give a false overinterpretation. So I'd render everything that's disputed as a plain text field. (Not even an array of text.) -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers