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 1msYEm-0000HV-I9 for pgsql-committers@arkaria.postgresql.org; Wed, 01 Dec 2021 22:38: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 1msYEk-0003EI-HQ for pgsql-committers@arkaria.postgresql.org; Wed, 01 Dec 2021 22:38:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msYEi-0003Dp-S8 for pgsql-committers@lists.postgresql.org; Wed, 01 Dec 2021 22:38:02 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msYEf-00066J-Mq for pgsql-committers@lists.postgresql.org; Wed, 01 Dec 2021 22:37:59 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CEA8B5C018C; Wed, 1 Dec 2021 17:37:55 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 01 Dec 2021 17:37:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=qrE/a5pLXbux/v0MPd+HJwEUI2l /Dk+lSowoeCOhuRU=; b=dOR4an2dr/vAXdfzsrkvUR5G1gqr3P9YiY8eDJJevwD ddSi9reS3wGQcm3XFnLhCOiexf+67apGlm5a+H+15KHD76yQsWOpHYcR8ABQ2bmN /9llUnIHjLwyf6VMpwk2zQmTXSFEStxTFuYUgZOI3sr1cFRpuyALer29p42ADzS4 +2zFO7LfCfyyA+aSntGK1poG64wgkDMXni+nn9tqVUErG7n9YJagsmEabdh+jryH x1yvWgXGk3ZKqllvDvuyDW49QtPHDO0mkBXNW9pRwnlehN5G9092x3UTUPwHblLh uY1R1qm6qDhrzl6nw9t7ntYGG4Na5bhQ58G6Hy7mJuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=qrE/a5 pLXbux/v0MPd+HJwEUI2l/Dk+lSowoeCOhuRU=; b=FFwaKOeQz2zSi9RdwCbBVO q5RJ9aS5v9iVW9VSEsAagP5Jse0LW7R4EHlkuIO08PR4M6W9svrTz1qjGpVWKlp5 c7WFWTl3yviqvxFxOBdc1tvKpME53e/4vcXmb8zVLZ9eVuCO8GgWJuThze2neXCi 4WGUfp1avo2PGIxP0w3FhA/SnmPXd4Z/DLjCtLe3ox6ruQ6CO7IRH2Tq1S/YX7Px +SehDmqOtT/1q5RklBlScQLOndXZS4PFxK2RryM0YQVDCT7mPwmJH7nBp08TmuXR heqzSxhh28wXJXlh/Q7t5ZO/VD5FO8j5xVFGrkEiCKvk1c4CLOaEea+RdSnhlSug == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrieegucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhluc fvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfh rhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquhhivg hrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeehheeiveeu ieegleetgeeljeelieeuieehgeevhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 1 Dec 2021 17:37:53 -0500 (EST) Date: Thu, 2 Dec 2021 07:37:49 +0900 From: Michael Paquier To: Tom Lane Cc: Daniel Gustafsson , pgsql-committers@lists.postgresql.org, Andrew Dunstan Subject: Re: pgsql: Add TAP tests for contrib/sslinfo Message-ID: References: <1632478.1638305700@sss.pgh.pa.us> <887628C4-6E1C-4DE5-BA8E-4252BA2B1A0D@yesql.se> <1636597.1638308177@sss.pgh.pa.us> <1686601.1638333261@sss.pgh.pa.us> <74D032CB-B5EE-4B39-AFBE-67F835A2CBDF@yesql.se> <50312478-6DB6-4A9A-99BF-2EACFF286149@yesql.se> <97EC3C0F-E7FB-4C5A-A15D-4E8F54CAF032@yesql.se> <1994933.1638392649@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ReqU0BBaZvKUG7z/" Content-Disposition: inline In-Reply-To: <1994933.1638392649@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --ReqU0BBaZvKUG7z/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Dec 01, 2021 at 04:04:09PM -0500, Tom Lane wrote: > I agree that some docs about this would be nice, but I think the rules > for when to use perl2host are more complex than what you suggest here. > Perhaps Andrew can clarify. +When passing a path from the Perl test code to PostgreSQL, like for example +the path to an SSL certificate, it must be converted for use on the host +system by using PostgreSQL::Test::Utils::perl2host. It seems to me that the rule applies to any paths passed down to the C code of Postgres, then processed by a system call. It would be good to add some examples of what that is, I guess. Until now, I think that we have seen: - Tablespace paths in SQL queries. - Paths passed down as function arguments, processed in system calls by frontends (like pg_basebackup and its tablespace map). - Paths part of connection strings, processed in system calls in libpq. -- Michael --ReqU0BBaZvKUG7z/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmGn+T0ACgkQnvQgOdby QH0UWg//UJjkzDjE9WQEhzr4fHL5M3Lv2LzAZOrDIb9JJl2AeC3emiXjWUOhO1/E 1RBLLaDaH5o1HBZ3CzGrQ444KW0FSUhGMbhvrrUqU6gibuyc2lYUTVODfY8K+YBH zYw7nxPPiIpldOpDQNz44hPMlNNp+fogrJJpYrGHJCaKcCQseXUzVhXhNHkuoFFq H5uB+miTYUNu6kyd5del2XoGZvi8hpngsLTf7Vh++Ni2VKyigtvStYxXMrCWFfTV QAf7wT5sDbJWIHKjZg6ExKeaw5eupnoD083YYKkBUtvTrwKm1fniejCqXiK+I1Ja Ib7mmBkwiOCd3A4C1DWhC6DiS2z32ZdQo6Di3qn5kRp0pnSsLc2PrYhPdh6ZcF/j S9ebKWhU/mv54C58/refGJygDU1cBc7YoXHYyD1x+p+RNph2BFbdlWv3/CH9deM/ zLun+xZEsypeP815CdX87FoFcy+WN80xSIoEx8v5jNaAlwHwb7viYQ7jxcWwAsSZ hhIqvxqQmNHVHO0dKVsdLGOIwIzsTGvWnNmaPAOhrR9YO1I8wq3GzWTbWRwuZcV0 6QkZhwBW5Vu2nOS/Dbj1zAGme0CbOkRCcgKNYLxZBM4lmuIY+xQBGlJUFE6TgX43 QLnHndG47c1hhm0+SZisb6YHriGLnN+qmWpOBCL4sVqA3jLq8gM= =BFni -----END PGP SIGNATURE----- --ReqU0BBaZvKUG7z/--