Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAi2q-00009y-NZ for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 01:17:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oAi2p-00056v-I2 for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 01:17:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAi2n-00056A-VH for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 01:17:03 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oAi2k-0008J9-AF for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 01:17:01 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 5022B32008FA; Sun, 10 Jul 2022 21:16:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 10 Jul 2022 21:16:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1657502210; x=1657588610; bh=etZKMFkR4F Q1PLijZ1XMTERAfiHDbtRPgKiYjq3esqg=; b=d2U2AQE+URs39jJkNADruEyZyW NVVrTX3suPLYvQmlXYdMc4b3N9gwL3CoB9Yv0iyNk6yXdA+LfDuX2pdqbL63ft3a l/Rfty1FOI7e5QWd2Gf1Kg/Tf64ywzSUCQ9sJyGhcsAmNPN2aXGACncTh/lL4Yfy Y/0K7xayPvPDLMhSOju75kPM5VkEtvKxSjMXVSPp0zb+k3LXjJXtX2NKmtJvegl4 4c9EP4E6AmGo2oJHwl2/RVFnW2poVyaIMmuj3/+OBHBIvrEK7AKaNFI7h9quL9YL R9OXKAX/z1wo5cqLhxk03zaX+F2yY2ekS8aPzSJhzM1A26wT6gVFA/xMY6zQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1657502210; x=1657588610; bh=etZKMFkR4FQ1PLijZ1XMTERAfiHD btRPgKiYjq3esqg=; b=ooJU4Xq4TBRBKHqlNuzPDhNWRM6QD3Z+ZT/cS8+i/G2J NQmCrF29gMtePogDMtuci4KGVb6jPlXWInO46+ioQW/CPQDNo5NCcdqKCTa/s7B6 gU+4Y6d/Ei/3kTedQn4zImvTfoPE6Vz+waRYUe6zlj5kaGKlXSrTzBmnHXI6TRAL bOH5Eqrf/q5lQ/Wk8a/254Yu4q3EQEDeI8gGFEeaoQsN5PLjogQJl4a1ovytx2uQ TVaMruhgdzxydTSV9jvquN1njg5WMelnhD1nUcFza6qmRuQASAa3KMoEIpudxOhn l8zsUvj+0b7IFz/V2ZmJ9nsh2WTE6RvPTUnBDTT7tw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejvddggeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 10 Jul 2022 21:16:49 -0400 (EDT) Date: Mon, 11 Jul 2022 10:16:44 +0900 From: Michael Paquier To: Julien Rouhaud Cc: Aleksander Alekseev , PostgreSQL Hackers , Nathan Bossart Subject: Re: Allow file inclusion in pg_hba and pg_ident files Message-ID: References: <20220328083330.dmbbujtd3bhj6h7t@jrouhaud> <20220329081454.tfa24qf5t5dyzjnt@jrouhaud> <20220518070938.pnucjfnp5yr6337l@jrouhaud> <20220523114308.qxnbjnxox23i5gsv@jrouhaud> <20220526072657.7nptqy7ihxk4gkla@jrouhaud> <20220708065721.7q7x7glj3mc37b5c@jrouhaud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KZKIOw7ryi9lv1aA" Content-Disposition: inline In-Reply-To: <20220708065721.7q7x7glj3mc37b5c@jrouhaud> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --KZKIOw7ryi9lv1aA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jul 08, 2022 at 02:57:21PM +0800, Julien Rouhaud wrote: My apologies for the late reply. > I don't have an extensive knowledge of all the user facing error messages, but > after a quick grep I see multiple usage of OID, PID, GIN and other defined > acronyms. I also see multiple occurrences of "only heap AM is supported", > while AM isn't even a defined acronym. A lot depends on the context of the code, it seems. > It doesn't seem that my proposal would be inconsistent with existing messages > and will help to reduce the message length, but if you prefer to keep the full > name I'm fine with it. Those should be very rare and specialized errors > anyway. So you mean to use "HBA file" instead of pg_hba.conf and "authentication file" when it can be either one of an HBA file or a mapping file? That would be okay by me. We would have a full cycle to tune them depending on the feedback we'd get afterwards. > While on the bikeshedding part, are you ok with the proposed keywords (include > and include_dir), behaving exactly like for postgresql.conf, and to also add > include_if_exists, so that we have the exact same possibilities with > postgresql.conf, pg_hba.conf and pg_ident.conf? Okay, agreed for consistency. With include_dir being careful about the ordering of the entries and ignoring anything else than a .conf file (that's something you mentioned already upthread). -- Michael --KZKIOw7ryi9lv1aA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmLLefwACgkQnvQgOdby QH3m7w/+O6Yve9kTWN1uINvDQ4pxoKueumkitebLD+VX3cNA0rqZnPmtE0fQtLh6 F0QfN4XYhQX2JQCpG+XwYRMeVngA9rSLDl0LrjKpirgUEi2eHsG6IcpTIFZR7FGQ pZN6tZAGJYfr/WsG0VOKEBb+lszygJoSy0W0311NDn4PPkuxiDSuRVoqiW79JVUX 6dMnFzVSbXf7wqpGqAPWH3QjEEaWR7Px/AO4k/Ch2pbkpAl585ZhNIWQH8YyqWrN EQdu+pWBCikzLTnMo/dhLZmB2ojeNuy+ZR0nOMJe/DotpswuErWtYAZft4O7GuMt iJLeozUHVeb45Bl8BykYajgG/FClHP0mEayVzFY4EQJqjdvCYYJyhQeM+GjwODli RhnB5utImt2mhULZEnyICJBo1PM7bLp+EPl/SalcokuCLJkxwvQXmr6BMj5HHCPE jhxWjFHHgQG3pjZsxOBeSyvhtksFRifBcnnzWow7YEGt6LyEBZOuLLBmLJO+1o5H EX4Ey1WlaPKtCvXgCkaBRZOY2cIJ1yYbVvmNB55rNkGhOQEKnSXSh/2hhXFCtuLW hsf24/YJDS8D5O6oOVv4MbJytlwM2EimmRHRedHMllglmtmMNn+NpbLRnlQkh9cQ oy5P7sXIiBXL81o9MekQVGzKMnILsS0Fjd9Zfm6kpTljlC4yfJI= =D6DP -----END PGP SIGNATURE----- --KZKIOw7ryi9lv1aA--