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 1oLV1N-0005xz-MK for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Aug 2022 19:36:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oLV1M-0004Ab-CC for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Aug 2022 19:36:08 +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 1oLV1M-0004AS-2P for pgsql-hackers@lists.postgresql.org; Tue, 09 Aug 2022 19:36:08 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLV1I-0005uA-4K for pgsql-hackers@lists.postgresql.org; Tue, 09 Aug 2022 19:36:07 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id BB2495C0265; Tue, 9 Aug 2022 15:36:02 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 09 Aug 2022 15:36:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1660073762; x=1660160162; bh=a fwidqpntTHo80AFD6X3JQA/07bwlCEddEPr/ahl9rE=; b=mwChmnoxxQOB2bJWo eTgsSQaKIf8RrzOtuGAGTOdnHwqSm51NNKxQnkH2WoeqCI7Mt0UdeA1y07URvcsS AFpoHi3EDB8yA8KWzoul8JRuPbymZ89n+lg6Zsn9/WaO8iBCD9Y+yJYj5aiUFVdu dl6gjefC5cR3FM26t9ZwIQmODgOktifdwnJcXYJBb8Vzpw52fPC6k6UbHwkg3pTj TKmtGHhsiJD4dAHuMag70v2zCmlhu5tayLlhQwP3+F3ZtKrVZ+Pih9KpzNQpECpv oyYN+pE5lnH7J4TXfSkKfRtTg5w6fz6CiSIJZnz2jDAyTvjHoOoc1uRgj0uXozqJ bDh5g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdegtddgudegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeej keffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghl vhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 9 Aug 2022 15:36:02 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 1DC68376; Tue, 9 Aug 2022 21:36:16 +0200 (CEST) Date: Tue, 9 Aug 2022 21:36:16 +0200 From: Alvaro Herrera To: Andres Freund Cc: Robert Haas , David Rowley , Yura Sokolov , PostgreSQL Developers Subject: Re: Reducing the chunk header sizes on all memory context types Message-ID: <20220809193616.5uucf33piwdxn452@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220809184410.g6yzu6pvttuphag5@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Aug-09, Andres Freund wrote: > Mildly wondering whether we ought to use designated initializers instead, > given we're whacking it around already. Too easy to get the order wrong when > adding new members, and we might want to have optional callbacks too. Strong +1. It makes code much easier to navigate (see XmlTableRoutine and compare with heapam_methods, for example). -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ Subversion to GIT: the shortest path to happiness I've ever heard of (Alexey Klyukin)