Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fwBdH-0008Kw-FC for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Sep 2018 19:32:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fwBdE-0003OI-Vx for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Sep 2018 19:32:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fwBdE-0003OB-Oq for pgsql-hackers@lists.postgresql.org; Sat, 01 Sep 2018 19:32:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fwBdC-0005Eu-9G for pgsql-hackers@postgresql.org; Sat, 01 Sep 2018 19:32:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w81JWALT012601; Sat, 1 Sep 2018 15:32:10 -0400 From: Tom Lane To: Michael Paquier cc: Fabien COELHO , Michael Banck , pgsql-hackers Subject: Re: pg_verify_checksums and -fno-strict-aliasing In-reply-to: <20180901003303.GE5305@paquier.xyz> References: <1535618100.1286.3.camel@credativ.de> <7321.1535639966@sss.pgh.pa.us> <20180830175652.GC15446@paquier.xyz> <12123.1535672257@sss.pgh.pa.us> <20180831000600.GI15446@paquier.xyz> <28226.1535727306@sss.pgh.pa.us> <21037.1535745351@sss.pgh.pa.us> <20180831222119.GD5305@paquier.xyz> <15258.1535759998@sss.pgh.pa.us> <20180901003303.GE5305@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Fri, 31 Aug 2018 17:33:03 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12599.1535830330.1@sss.pgh.pa.us> Date: Sat, 01 Sep 2018 15:32:10 -0400 Message-ID: <12600.1535830330@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Fri, Aug 31, 2018 at 07:59:58PM -0400, Tom Lane wrote: >> The others you mention could be changed, probably, but I didn't >> bother as they didn't seem performance-critical. > It is not really critical indeed. There is an argument to change them > so as other folks get used to it though. Fair enough. I renamed the types as suggested, changed a few more places for consistency's sake, and pushed. There still remain some places where palloc(BLCKSZ) or equivalent is used, but there's no matching pfree. In a lot of them the buffer is returned to the caller so there's no choice. It's likely that some are just leaking the storage transiently and we could convert them to using a PGAlignedBlock local variable, but I didn't bother trying to do the analysis. regards, tom lane