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 1oTbfu-0005bT-IJ for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Sep 2022 04:19:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oTbft-0007LI-4U for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Sep 2022 04:19:29 +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 1oTbfs-0007L9-RI for pgsql-hackers@lists.postgresql.org; Thu, 01 Sep 2022 04:19:28 +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 1oTbfq-0003UW-OT for pgsql-hackers@lists.postgresql.org; Thu, 01 Sep 2022 04:19:28 +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 2814JLC2292511; Thu, 1 Sep 2022 00:19:21 -0400 From: Tom Lane To: David Rowley cc: Tomas Vondra , Amit Kapila , Andres Freund , Robert Haas , Yura Sokolov , PostgreSQL Developers Subject: Re: Reducing the chunk header sizes on all memory context types In-reply-to: References: <20220809184410.g6yzu6pvttuphag5@awork3.anarazel.de> <3137572.1661780863@sss.pgh.pa.us> <3205803.1661786437@sss.pgh.pa.us> <290062.1662005181@sss.pgh.pa.us> Comments: In-reply-to David Rowley message dated "Thu, 01 Sep 2022 16:08:10 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <292509.1662005961.1@sss.pgh.pa.us> Date: Thu, 01 Sep 2022 00:19:21 -0400 Message-ID: <292510.1662005961@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk David Rowley writes: > On Thu, 1 Sept 2022 at 16:06, Tom Lane wrote: >> It doesn't seem to be fixing any live bug in the back branches, >> but by the same token it's harmless. > I considered that an extension might use the Slab allocator with a > non-MAXALIGNED chunksize and might run into some troubles during > SlabCheck(). Oh, yeah, the sentinel_ok() change is a live bug. Extensions have no control over sizeof(SlabBlock) though. regards, tom lane