Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YRR0i-0000Kx-4G for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Feb 2015 19:55:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YRR0h-000344-9h for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Feb 2015 19:55:43 +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 1YRR0g-00033y-0h for pgsql-hackers@postgresql.org; Fri, 27 Feb 2015 19:55:42 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YRR0U-0003NP-7B for pgsql-hackers@postgresql.org; Fri, 27 Feb 2015 19:55:40 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 452475F7AE; Fri, 27 Feb 2015 14:55:29 -0500 (EST) Date: Fri, 27 Feb 2015 14:55:29 -0500 From: Stephen Frost To: Pavel Stehule Cc: Tomas Vondra , PostgreSQL Hackers Subject: Re: Providing catalog view to pg_hba.conf file - Patch submission Message-ID: <20150227195529.GS29780@tamriel.snowman.net> References: <20140630070646.GY31357@toroid.org> <54C8156E.1080500@BlueTreble.com> <54C95C4B.2080901@BlueTreble.com> <54F09D68.2090700@2ndquadrant.com> <20150227165950.GP29780@tamriel.snowman.net> <20150227183236.GQ29780@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yKucn/VR3FthLjAA" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-45-generic (x86_64) X-Uptime: 14:53:01 up 36 days, 19:42, 4 users, load average: 0.07, 0.16, 0.15 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --yKucn/VR3FthLjAA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Pavel Stehule (pavel.stehule@gmail.com) wrote: > this topic should be divided, please. One part - functions for loading > pg_hba and translating to some table. Can be two, can be one with one > parameter. It will be used probably by advanced user, and I am able to > accept it like you or Tomas proposed.=20 I'm not sure why you'd need a parameter for the function. The function could back a view too. In general, I think you're agreeing with me that it'd be a useful capability to have. > Second part is the content of view > pg_hba_conf. It should be only one and should to view a active content. I > mean a content that is actively used - when other session is started. I am > strongly against the behave, when I have to close session to refresh a > content of this view (after reload) - and I am against to see there not > active content. Right, we also need a view (or function, or both) which provides what the *active* configuration of the running postmaster is. This is exactly what I was proposing (or what I was intending to, at least) with pg_hba_active, so, again, I think we're in agreement here. Thanks, Stephen --yKucn/VR3FthLjAA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJU8MuwAAoJEO1sijiDR2RVtIQP/jMr2acFIcp5iaR93Hwt64BS lzdj9AYYG3aTcd2gtqsEap1I0QM68ZOX3GgN8QKblH1y3uT+S4PEHNvf8iZNCev1 lqnIj9fsNQQpYmBwFZQuFFa/03QBgLHRJAfeExMqPLTgTZJ4mr/dW9J0n/owxbj0 EMmqmiI92SuheK4rc2Vt2yw8QwfMgTESfPWOf+Yrv1+6lp1zhSl1n6Pk8YpBINdg FEhQi63GrFT3mFLuXNyo1GfyPbRlqNszIJ7+XnXPYeVFqvyIFJrIWH2ncFNf7gcH ZiQbYJIt9EAjM+IpFa2wLJWGaJgNPJzJpLNZWi0UAxIm3Vp/wLOB+nLXnVnvWbd2 CqwChmXAMN+nbRKL90AzU1XtkxDrMM1qY+DDnf9j7DKt4aRcYYKDH5dCtjjwNoSx Mh6fomK+Pxk3Gg5VC9GmnLnYrqxOkyNvQvXIUKKuKVLp2AMw9sYBFT08RLl4kQsG MGk0Sne+XnK3AN06jFs1cIomeo37NXSluv4B8pFU85wN7ihnSS6rNXBNV64khXXP bR4FpCP1YJBHxYZ9dwbhkou2QyhUXPXKUGPpJ8rchQoi3jJiJBIVLP2iFXz6gTYs 19e3vxAe2rXYUGSbU4jsfraDMhLiVYVf8OaXx35XAB2vLPHMXCRHdAaRBVQReLK/ YrRY+i8+wzKpFCrIU+T8 =ZyCd -----END PGP SIGNATURE----- --yKucn/VR3FthLjAA--