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 1oSgjs-0004oW-Qf for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Aug 2022 15:31:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oSgjr-0005Tm-6X for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Aug 2022 15:31:47 +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 1oSgjq-0005Td-Tl for pgsql-hackers@lists.postgresql.org; Mon, 29 Aug 2022 15:31:46 +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 1oSgjo-0005jo-Uv for pgsql-hackers@lists.postgresql.org; Mon, 29 Aug 2022 15:31:46 +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 27TFVeEm3208137; Mon, 29 Aug 2022 11:31:40 -0400 From: Tom Lane To: Robert Haas cc: Amit Kapila , David Rowley , Andres Freund , Yura Sokolov , PostgreSQL Developers Subject: Re: Reducing the chunk header sizes on all memory context types In-reply-to: References: <9dec1bd42fed3e263de294116380e5b51c427267.camel@postgrespro.ru> <20220712174404.polbc5it7j6mzmql@awork3.anarazel.de> <20220809184410.g6yzu6pvttuphag5@awork3.anarazel.de> <3137572.1661780863@sss.pgh.pa.us> <3201943.1661784942@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 29 Aug 2022 11:15:52 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3208135.1661787100.1@sss.pgh.pa.us> Date: Mon, 29 Aug 2022 11:31:40 -0400 Message-ID: <3208136.1661787100@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > I've got another problem with this patch here on macOS: > In file included from aset.c:52: > ../../../../src/include/utils/memutils_memorychunk.h:170:18: error: > comparison of constant 7 with expression of type > 'MemoryContextMethodID' (aka 'enum MemoryContextMethodID') is always > true [-Werror,-Wtautological-constant-out-of-range-compare] > Assert(methodid <= MEMORY_CONTEXT_METHODID_MASK); > ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ../../../../src/include/c.h:827:9: note: expanded from macro 'Assert' > if (!(condition)) \ > ^~~~~~~~~ Huh. My macOS buildfarm animals aren't showing that, nor can I repro it on my laptop. Which compiler version are you using exactly? regards, tom lane