Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jA1fC-0000z6-Np for pgsql-committers@arkaria.postgresql.org; Fri, 06 Mar 2020 01:20:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jA1fA-0000AB-He for pgsql-committers@arkaria.postgresql.org; Fri, 06 Mar 2020 01:20: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_SHA1:256) (Exim 4.89) (envelope-from ) id 1jA1fA-0000A4-A2 for pgsql-committers@lists.postgresql.org; Fri, 06 Mar 2020 01:20:28 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jA1f8-0006EP-4i for pgsql-committers@lists.postgresql.org; Fri, 06 Mar 2020 01:20:27 +0000 Received: from Davids-MacBook-Pro.local (c-73-39-102-148.hsd1.va.comcast.net [73.39.102.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 17EDE5465C; Fri, 6 Mar 2020 01:20:24 +0000 (UTC) Subject: Re: pgsql: Avoid -Wconversion warnings when using checksum_impl.h To: Michael Paquier Cc: Magnus Hagander , pgsql-committers References: <1cf30561-7dad-dc6e-9fc3-5c456948cfeb@pgmasters.net> <20200305233014.GA2501@paquier.xyz> <20200306004826.GB52814@paquier.xyz> <20200306011006.GC52814@paquier.xyz> From: David Steele Message-ID: Date: Thu, 5 Mar 2020 20:20:23 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200306011006.GC52814@paquier.xyz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/5/20 8:10 PM, Michael Paquier wrote: > On Thu, Mar 05, 2020 at 07:58:50PM -0500, David Steele wrote: >> Yeah, keeping BLKSZ a constant is pretty important for performance. That's >> one of the main reasons that we only support the default. > > Doing something is not complicated, now how would people like to do > it? Here are the options I can think of: > 1) A TAP test, which bypasses the tests if the page size is not 8k. > 2) A test for src/test/regress/, with a method similar to what we do > for collate.sql for the compilations without ICU. > > In both cases mentioned here, we would need a SQL function to handle > the work. Couldn we use pageinspect? -- -David david@pgmasters.net