remove redundant check of item pointer

From: Junwang Zhao <zhjwpku(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: remove redundant check of item pointer
Date: 2022-04-27 15:11:26
Message-ID: CAEG8a3KzayPU7mMRBLTbTZ9UTu27r0JccgaFy6qtYk8Er7KOEg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In function ItemPointerEquals, the ItemPointerGetBlockNumber
already checked the ItemPointer if valid, there is no need
to check it again in ItemPointerGetOffset, so use
ItemPointerGetOffsetNumberNoCheck instead.

--
Regards
Junwang Zhao

Attachment Content-Type Size
v1-0001-remove-redundant-check-of-item-pointer.patch application/octet-stream 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-04-27 15:34:29 Re: remove redundant check of item pointer
Previous Message Wilm Hoyer 2022-04-27 15:04:23 AW: BUG #17448: In Windows 10, version 1703 and later, huge_pages doesn't work.