Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qfSzh-00BDrP-Br for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Sep 2023 22:33:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qfSzg-00BueR-6l for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Sep 2023 22:33:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qfSzf-00BueF-SC for pgsql-hackers@lists.postgresql.org; Sun, 10 Sep 2023 22:33:27 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qfSzb-003r2p-Dx for pgsql-hackers@lists.postgresql.org; Sun, 10 Sep 2023 22:33:26 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 31E7A5C006F; Sun, 10 Sep 2023 18:33:22 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 10 Sep 2023 18:33:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type: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=fm1; t=1694385202; x=1694471602; bh=KA 57W16FHWFvlKXh97D9q/2DsjvrhtmwxD3HDIdR5EI=; b=TL2VSqmyzp2mFColb8 321/hqFCHVtP5PUmFVegPoKQYpBx1ysuifd1cDswQ4rQYuwQcXpWtPPBnUFwFKqW 4vtV/DFyELZq+1qK/UR89NDFPoAn25c+f+wEm5WijJJuQGKwkgRVCfggqxXE90yk rJdxO91PT2/h6CfwOlUgkPf+dsz7Yqvt00tkjTS9TLysPLgm3vtDpot8bisJtPgB Hm1yf9Shf3NV5CScGhZ83yvmZ82q8dCQI4vUpNCnzOsHpTObWXqALljrQrO48kpf 3mMyAd9hT+cqLCSJQJM2zN1OqGOlvdsJ9LWnNTifbGv9YZ0xFlIllhEB3WjycdVw o2MA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type: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=fm1; t=1694385202; x=1694471602; bh=KA57W16FHWFvl KXh97D9q/2DsjvrhtmwxD3HDIdR5EI=; b=IaE3L/V4Ed7UPoh0YqPf249YV0i5g mBf7OKPHqRllCMzPriTYDLiA14khKTBdnEEhRgifd80yLx5awCzLvpyvYg4r5IDt MyWXwUrgnmA2znUw09cxRd8CDNvh1LX+5GKwMrTbbd0+/jsRF2s3JIg20EL2oZT/ 21gCklkUcUwIoWYviS1vXEgY/QyaRiO6brJsGOkryIsqN8JNx+AYAPDdfafjiZpN 7Iu8L3mOlmMrFwlmQG49AYkeFzwXrFqvzB8eISgAxqpitbeKgmkdJKmqsuhO03E1 0opsQ2677bf6gE+HEXLr1ED/7WT60cgZUJ1/v4eOLTkfGKGxHmWzBUqKQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeifedgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepgeffjeevgfevuddvjedtvddt ieejheduueelvddufedtgfefjedvkeevkeeivddvnecuffhomhgrihhnpehpohhsthhgrh gvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 10 Sep 2023 18:33:20 -0400 (EDT) Date: Mon, 11 Sep 2023 07:33:16 +0900 From: Michael Paquier To: Jim Jones Cc: PostgreSQL Hackers Subject: Re: [PATCH] Add inline comments to the pg_hba_file_rules view Message-ID: References: <4d623899-36ac-71b5-311d-2a4672d75736@uni-muenster.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PoyjEQnp5qFMKskA" Content-Disposition: inline In-Reply-To: <4d623899-36ac-71b5-311d-2a4672d75736@uni-muenster.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --PoyjEQnp5qFMKskA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 04, 2023 at 12:54:15PM +0200, Jim Jones wrote: > The patch slightly changes the test 004_file_inclusion.pl to accommodate = the > new column and the hba comments. >=20 > Discussion: https://www.postgresql.org/message-id/flat/3fec6550-93b0-b542= -b203-b0054aaee83b%40uni-muenster.de Well, it looks like what I wrote a couple of days ago was perhaps confusing: https://www.postgresql.org/message-id/ZPHAiNp%2ByKMsa/vc%40paquier.xyz https://www.postgresql.org/message-id/ZPE8A7EnUH+ax5kw@paquier.xyz This patch touches hbafuncs.c and the system view pg_hba_file_rules, but I don't think this stuff should touch any of these code paths. That's what I meant in my second message: the SQL portion should be usable for all types of configuration files, even pg_ident.conf and postgresql.conf, and not only pg_hba.conf. A new SQL function returning a SRF made of the comments extracted and the line numbers=20 can be joined with all the system views of the configuration files, like sourcefile and sourceline in pg_settings, etc. -- Michael --PoyjEQnp5qFMKskA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmT+RCwACgkQnvQgOdby QH21iw/+KHifKl4V2hNclT9gd8GThzYmkonxoc0W2HKAihF8NiZWeHF81AQZ8O5R N5QLsXQSCyNeSfRU6/defF6s8+mf6pZrpS0a7n9sR6n+Jz1BeTWMsk0DpzjhDOo/ 2u+UTHrv2jEALMz2eSz8mcsFQg7tcfonV6DuF110ARcEs31u2vzeekzIIdWjRA9i hE3M9pPMvre6zuZAH06YY6gDh6YTgIZLYRARX3cEHZalz6gsMNLdWkkeYN0nl0nW 5kdRhkwe8UoVObaYFkjE63QhCuDJaR4NfcnhUKtrIeUMT5IrK78A1jK0Q0b6CQkn 7gXcsjFD84+p+wjT/RK0VVG5zKBt7151b8AqMDKrW2yg0ZHdQzPrPZ4D1epQpCg5 BNZgYy7O1zRYefuEWkr5g0+KvLnY+hFO0fY5dPCue+ha7WfKa9SIDt8JjlBSTWhz OtjCOLuEKNGogD7/g0vbxieSfuGoA3inLp11quON52CyW5Z4BllVtc3MtqKzbVEj FIjaUwfZmjXt1ThnnE7dyPcdcHK9OwxNTuEuEao68yFjCbGtJgN/juNhLh8Od5FE cwv+vAX/KmYdWn08lQepPrelmi/czEskZCMnQsnzpCdz4JvkLOhD3t5asrm7R7W7 UozkEPHYkxyVBj2DH8YG3QbZ/cG/5qbomzKaONh9YEUIY/JgEGQ= =gcEt -----END PGP SIGNATURE----- --PoyjEQnp5qFMKskA--