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 1msqr6-00041A-VM for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Dec 2021 18:30:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1msqr5-0007v7-PK for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Dec 2021 18:30:51 +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 1msqr5-0007ut-Fv for pgsql-hackers@lists.postgresql.org; Thu, 02 Dec 2021 18:30:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msqr1-0007Qj-UH for pgsql-hackers@postgresql.org; Thu, 02 Dec 2021 18:30:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1B2IUjOD2116431; Thu, 2 Dec 2021 13:30:45 -0500 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers Subject: Re: pgcrypto: Remove explicit hex encoding/decoding from tests In-reply-to: <17dcb4f7-7ac1-e2b6-d5f7-2dfba06cd9ee@enterprisedb.com> References: <17dcb4f7-7ac1-e2b6-d5f7-2dfba06cd9ee@enterprisedb.com> Comments: In-reply-to Peter Eisentraut message dated "Thu, 02 Dec 2021 10:22:49 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2116429.1638469845.1@sss.pgh.pa.us> Date: Thu, 02 Dec 2021 13:30:45 -0500 Message-ID: <2116430.1638469845@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > pgcrypto tests use encode() and decode() calls to convert to/from hex > encoding. This was from before the hex format was available in bytea. > Now we can remove the extra explicit encoding/decoding calls and rely on > the default output format. Generally +1, but I see you removed some instances of --- ensure consistent test output regardless of the default bytea format -SET bytea_output TO escape; I think that the principle still applies that this should work regardless of the installation's default bytea format, so I'd recommend putting -- ensure consistent test output regardless of the default bytea format SET bytea_output TO hex; at the top of each file instead. regards, tom lane