Re: static assert cleanup

From: John Naylor <john(dot)naylor(at)enterprisedb(dot)com>
To: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: static assert cleanup
Date: 2022-12-09 10:01:19
Message-ID: CAFBsxsGar4THO2VOj3UMAMq+Ns63eWoa0N94JWvW7FJ-N08TKg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Dec 9, 2022 at 2:47 PM Peter Eisentraut <
peter(dot)eisentraut(at)enterprisedb(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2022-12-09 10:02:27 Re: Documenting MERGE INTO ONLY ...
Previous Message Alvaro Herrera 2022-12-09 09:52:17 Re: generic plans and "initial" pruning