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 1lKxtS-0007jC-V5 for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Mar 2021 06:36:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lKxsw-0005os-9s for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Mar 2021 06:36:26 +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 1lKxsw-0005ol-2r for pgsql-hackers@lists.postgresql.org; Sat, 13 Mar 2021 06:36:26 +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 1lKxsp-0003FO-Sd for pgsql-hackers@postgresql.org; Sat, 13 Mar 2021 06:36:25 +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 12D6aBST2591071; Sat, 13 Mar 2021 01:36:11 -0500 From: Tom Lane To: Mark Dilger cc: Noah Misch , Robert Haas , Peter Geoghegan , Thomas Munro , "Andrey M. Borodin" , Stephen Frost , Michael Paquier , Amul Sul , Dilip Kumar , Andres Freund , PostgreSQL-development Subject: Re: pg_amcheck contrib application In-reply-to: References: <9E76E46A-48B2-4869-BD0C-422204C1F767@enterprisedb.com> <2574324.1615611372@sss.pgh.pa.us> <2588078.1615613250@sss.pgh.pa.us> <2589781.1615615635@sss.pgh.pa.us> <20210313061655.GC3099026@rfd.leadboat.com> <6BBDE6C1-3F40-4009-896D-9CA9D87BEC9A@enterprisedb.com> <2590503.1615616574@sss.pgh.pa.us> Comments: In-reply-to Mark Dilger message dated "Fri, 12 Mar 2021 22:28:44 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2591069.1615617371.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 13 Mar 2021 01:36:11 -0500 Message-ID: <2591070.1615617371@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mark Dilger writes: > On Mar 12, 2021, at 10:22 PM, Tom Lane wrote: >> Coping with both endiannesses might be painful. > Not too bad if the bigint value is zero, as both the low and high 32bits= will be zero, regardless of endianness. The question is whether that giv= es up too much in terms of what the test is trying to do. I'm not sure th= at it does, but if you'd rather solve this by upgrading perl, that's ok by= me. = I don't mind updating the perl installations on prairiedog and gaur, but Noah might have some difficulty with his AIX flotilla, as I believe he's not sysadmin there. You might think about using some symmetric-but-not-zero value, 0x01010101 or the like. regards, tom lane