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 1pZq4f-0007Gw-5k for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Mar 2023 09:27: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 1pZq4e-000079-0N for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Mar 2023 09:27:04 +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 1pZq4d-00006u-MX for pgsql-hackers@lists.postgresql.org; Wed, 08 Mar 2023 09:27:03 +0000 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pZq4a-0006zr-OU for pgsql-hackers@postgresql.org; Wed, 08 Mar 2023 09:27:02 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id BD4DD2B066BB; Wed, 8 Mar 2023 04:26:57 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 08 Mar 2023 04:26:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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= 1678267617; x=1678274817; bh=OV1iC1F0hBxGMOryNO3W/yP03EsqYmrTviC XV9Ligac=; b=luIKfObpYAVgNAnfuCKuD10htMtdE1KOqFdMu3nWcAt+g6LI9WO SjV4ZPtHqELia56mtceIo+vbCOBMghxLbn+d8wantdF4pSRcyNpZJ5w7R5PGhap8 tFOTAKZMdZMAA9ilcZOeaDQS2hQ8F26Y+cqHJD2dN7ecySKOtXU1gn+gH4UWaUk0 XMAXVhhPM1ytz+w9PZwiXlk4RevRgukr1mJKnypl6bXWFQ91F5a9/X7HxdSgbEQK Sk1UfEHc/xbRKvCAKdqxuUyODrD49IgOibxxYV4q7vO+ncJbZst3drZkmCtgJjn0 +Ji6Ll5qVOZcPgYt+yIHuoRSq31LzKkHNHA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdduvdcutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgvrhcu gfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvghrph hrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepheelffeggedujeetiefhleet uddvieffhfffvdejvdffgeejkeduleduheduieefnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsegv nhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Mar 2023 04:26:56 -0500 (EST) Message-ID: <84550e37-c3e6-94a5-538f-063f6dcacf08@enterprisedb.com> Date: Wed, 8 Mar 2023 10:26:54 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: Allow tests to pass in OpenSSL FIPS mode Content-Language: en-US To: Tom Lane Cc: Michael Paquier , pgsql-hackers References: <647f6cc1-473d-f788-ade0-c09201e5ab6a@enterprisedb.com> <3c36b798-fbb2-9246-fafd-4e4b2f546de8@enterprisedb.com> <6885f06b-79a4-8ded-2261-85a7be68ef4c@enterprisedb.com> <3036649.1677971077@sss.pgh.pa.us> <140442.1678261237@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: <140442.1678261237@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 08.03.23 08:40, Tom Lane wrote: > Peter Eisentraut writes: >> On 05.03.23 00:04, Tom Lane wrote: >>> I've gone through this and have a modest suggestion: let's invent some >>> wrapper functions around encode(sha256()) to reduce the cosmetic diffs >>> and consequent need for closer study of patch changes. In the attached >>> I called them "notmd5()", but I'm surely not wedded to that name. > >> Do you mean create this on the fly in the test suite, or make it a new >> built-in function? > > The former --- please read my version of the patch. Ok, that makes sense. We have some other uses of this pattern in other test suites that my initial patch didn't cover yet, for example in src/test/subscripton, but we don't have expected files there, so the argument of reducing the diffs doesn't apply.