Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YTig2-0005jt-H2 for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Mar 2015 03:11:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YTig1-0005lm-KT for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Mar 2015 03:11:49 +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 1YTift-0005Yx-0O for pgsql-hackers@postgresql.org; Fri, 06 Mar 2015 03:11:41 +0000 Received: from mout.gmx.net ([212.227.17.22]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YTifo-00075W-65 for pgsql-hackers@postgresql.org; Fri, 06 Mar 2015 03:11:38 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MOSNd-1YQ8J63Bvp-005pPt for ; Fri, 06 Mar 2015 04:11:33 +0100 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 5BD5120BAD for ; Thu, 5 Mar 2015 22:11:30 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Thu, 05 Mar 2015 22:11:31 -0500 X-Sasl-enc: Sy7RwRk/Fdh3//YbUsAFKS2ojENd2IiN3rkIvVsKVdjD 1425611491 Received: from [10.0.0.13] (unknown [67.165.24.246]) by mail.messagingengine.com (Postfix) with ESMTPA id 37A356801B9; Thu, 5 Mar 2015 22:11:31 -0500 (EST) Message-ID: <54F91AE2.9090201@gmx.net> Date: Thu, 05 Mar 2015 22:11:30 -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: Greg Stark CC: Jim Nasby , 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> <54F77C04.4060708@gmx.net> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:oPU0dmQWnR19mEO4ZzQUavOpa8vJOB31DREvt1P6DXu3CRqQ4IQ zr2LGvu6tjMLlBQuyuXuoXo2m6X4on9Uh3+dnz/+4bRkNVPuL2E9ZUkBQjLvWH+oWvDYFlp Fo7Na0W/0/YDdajsrAnlk5hRa/xJWVnisxO1z2YP/JgUSA/vAay38jqPFdrEN5h8KNhfc1B lGB5xyjp8UouuguT1YeWg== 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/5/15 9:42 AM, Greg Stark wrote: > Well if you want to read the file as is you can do so using the file > reading functions which afaik were specifically intended for the > purpose of writing config editing tools. Sure, but those things are almost never installed by default, and I don't want to install them if they provide easy write access, and they don't help you find the actual file. This proposal is much nicer. > Joining against other catalog tables may be kind of exaggerated but if > I have data in an SQL view I certainly expect to be able to write > WHERE clauses to find the rows I want without having to do string > parsing. If it were a comma-delimited string I have to do something > like WHERE users LIKE '%,username,%' but then that's not good enough > since it may be the first or last and the username itself may contain > white-space or a comma etc etc. The point is, it should be one or the other (or both), not something in the middle. It's either a textual representation of the file or a semantic one. If it's the latter, then all user names, group names, and special key words need to be resolved in some way that they cannot be confused with unfortunately named user names. And there needs to be a way that we can add more in the future. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers