remove redundant check of item pointer - Mailing list pgsql-hackers

From Junwang Zhao
Subject remove redundant check of item pointer
Date
Msg-id CAEG8a3KzayPU7mMRBLTbTZ9UTu27r0JccgaFy6qtYk8Er7KOEg@mail.gmail.com
Whole thread Raw
Responses Re: remove redundant check of item pointer  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

pgsql-hackers by date:

Previous
From: Wilm Hoyer
Date:
Subject: AW: BUG #17448: In Windows 10, version 1703 and later, huge_pages doesn't work.
Next
From: Tom Lane
Date:
Subject: Re: remove redundant check of item pointer