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 1p5kbX-0004fV-Ax for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Dec 2022 09:32:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p5kbW-0000ly-9J for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Dec 2022 09:32:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5kbV-0000iw-4E for pgsql-hackers@lists.postgresql.org; Thu, 15 Dec 2022 09:32:37 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5kbR-0007AD-Lz for pgsql-hackers@postgresql.org; Thu, 15 Dec 2022 09:32:36 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 3AF115802F8; Thu, 15 Dec 2022 04:32:30 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 15 Dec 2022 04:32:30 -0500 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:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1671096750; x= 1671103950; bh=lucSM4dU5SMXbQ3077wIhhsYwKHslE2bTwPEZxAiyz4=; b=O VUAaaI+LcktNeQxnS47iuZ1x1O7fBj/MAvQLyGUf2DQpkhHXlM1EZm93M6Is+R0U 6E/T5CWxWE5xHnuWeafy45W+JyaO5Bpj9ojfcl7gsykTSLzwLZSjcns2z+JWRYdz 0ke1I7PdSM5e49bO4wZWlolY6aqtJAJpg4f/5ngS4tXr91Vk/OF0wwYr1gKopYCs 5ctTAoQttg3wWOeu4RFCZilzfd+vmuzzw4jHG6c5KDAmVi6SfKx80w4M35N7pWtY tPd6BbalBy78QMrnNyY8nZH+NEBPoOX8bZ5H5EpZp4N0wMwghBPEPQrB2vwXX29v xPhoK+PcLVr1a1+Kl10Cg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehgddtgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhephfejudeuleefheeutddu feetjeevgeeiieeujeeuheefkedttdeuieeiieethfevnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 15 Dec 2022 04:32:29 -0500 (EST) Message-ID: <4d61a288-cc0a-cd79-2cd8-2019415be939@enterprisedb.com> Date: Thu, 15 Dec 2022 10:32:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: static assert cleanup Content-Language: en-US To: John Naylor Cc: pgsql-hackers References: <941a04e7-dd6f-c0e4-8cdf-a33b3338cbda@enterprisedb.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 09.12.22 11:01, John Naylor wrote: > > On Fri, Dec 9, 2022 at 2:47 PM Peter Eisentraut > > wrote: > > > > 0003-Move-some-static-assertions-to-better-places.patch > > > > This moves some that I thought were suboptimally placed but it could be > > debated or refined. > > + * We really want ItemPointerData to be exactly 6 bytes.  This is rather a > + * random place to check, but there is no better place. > > Since the assert is no longer in a random function body, it seems we can > remove the second sentence. Committed with the discussed adjustments.