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 1p3aDF-0001RC-7P for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Dec 2022 10:02:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p3aCG-0007Rv-4a for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Dec 2022 10:01:36 +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 1p3aCF-0007Rm-Cn for pgsql-hackers@lists.postgresql.org; Fri, 09 Dec 2022 10:01:35 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p3aCC-0000Za-SP for pgsql-hackers@postgresql.org; Fri, 09 Dec 2022 10:01:34 +0000 Received: by mail-ej1-x62a.google.com with SMTP id t17so10356989eju.1 for ; Fri, 09 Dec 2022 02:01:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qclNsEJ5o92hmfyxoVEFMOol9dA/yTXghSWdSN/T2gA=; b=Qu99YW7FkgsGhSasxe2EkTA1KjgqjXIi+gfyVbRpCBqeLmVbKz15JGcCkkoentU/8R VN7Fl4HQ6tcCWucG3LpTvEHezp7ev0EBSo8zqzfqu+o9ocG1trqnpCh2R/4uX05ZXddg 9Wylu9SxTmdpf3AUhPEv6f3uo17vnv2O3jSLfuEBojX4qL8YvmkmLN4/4fyR3AUmYmKR lpKjj7dMiG7cFVi8lzVlpKuCVQgZG4WoMwy2OFujhMijQGduLJsNXUqsq9/TDZuGHKST M02q8z7kASZ7TT1RGbbT1A5AR7ScM4B2pR8JyBBUpcUBelCXRl7nSfbNaOsHXjIxu9Gj dF4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qclNsEJ5o92hmfyxoVEFMOol9dA/yTXghSWdSN/T2gA=; b=Ld0RSfdSgMBFkI68VJBRvQYIRCcKFtjYWFxpchC/DEzGBm7pwc2zIjzhqQ3wHjq+aa kziNnVxa7TixnY65d0vYTFuofW9BDYhkT9piZ1EsNK14LsAYuEEmu1DcMwujh9/X1W3s kefk0JmJPg3mNd9knmPuyhrWsebdvuLUqU8WeDKF07H0/27Wbc0fWUG5pvHZ0qERo6wa JhOYxKQgiCBToDNX43CwtJmayY+UZVZbmmdmBg7V1SifBQ8j79iDIiqSXaGjDEgsWzE8 ow6B6rGNX1VSTCsoWavo6YJrRX31KEa1QPRrsOQrUvPHI2IpYbFkr7z+IFMIK3eFz3PP kksg== X-Gm-Message-State: ANoB5pltCJwtjliDxFuAz5b2d+GXl/MyvQ1gKlDqoH0T1VkEwAoOphB1 a7bKCzA6sfDwZ66U+LHkD+X4SLlnIN7oNcZsezAIoesExovVNBghK0OCEwD3h+uYIcwGl2Us9+S 5tpcUSwuRx0nlH8JNlvMuOV8V5UgiyZMOQ2vBdKA5HbeqGgbRXBkCu7DC625Itz07KLdlbChyzB VgHvAeugrW3n/TM97Yeb6fRoCtlUVeMO+2IoxkeLruR9lDzIrlhPCkUJgDWLjdNYTZyKCJEYH1T Dz9VCR6j69g3UmrzAfSfWQryL7YJEKOJiCyCtLbtsruXB+tCm3D X-Google-Smtp-Source: AA0mqf771qYJoqDb6ozvHMgyHjnhcFSfUyTsIcdNUMDvSv+DPuZwox2WoVfMi9cR8KFhsON1fZpaNb+kbt9nOgaj8Cw= X-Received: by 2002:a17:907:d68b:b0:7b9:dff1:b26e with SMTP id wf11-20020a170907d68b00b007b9dff1b26emr23819290ejc.289.1670580091267; Fri, 09 Dec 2022 02:01:31 -0800 (PST) MIME-Version: 1.0 References: <941a04e7-dd6f-c0e4-8cdf-a33b3338cbda@enterprisedb.com> In-Reply-To: <941a04e7-dd6f-c0e4-8cdf-a33b3338cbda@enterprisedb.com> From: John Naylor Date: Fri, 9 Dec 2022 17:01:19 +0700 Message-ID: Subject: Re: static assert cleanup To: Peter Eisentraut Cc: pgsql-hackers Content-Type: multipart/alternative; boundary="000000000000e8d4cc05ef623cb0" X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000e8d4cc05ef623cb0 Content-Type: text/plain; charset="UTF-8" On Fri, Dec 9, 2022 at 2:47 PM Peter Eisentraut < peter.eisentraut@enterprisedb.com> 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. -- John Naylor EDB: http://www.enterprisedb.com --000000000000e8d4cc05ef623cb0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Fri, Dec 9, 2022 at 2:47 PM Peter Eisentraut <peter.eisentraut@enterpr= isedb.com> wrote:
>
> 0003-Move-some-static-assertions-t= o-better-places.patch
>
> This moves some that I thought were s= uboptimally placed but it could be
> debated or refined.

+ * W= e really want ItemPointerData to be exactly 6 bytes.=C2=A0 This is rather a=
+ * random place to check, but there is no better place.

Since t= he assert is no longer in a random function body, it seems we can remove th= e second sentence.

--
John Naylor
EDB: http://www.enterprisedb.com
--000000000000e8d4cc05ef623cb0--