pgsql: Get heap page max offset with buffer lock held. - Mailing list pgsql-committers

From Peter Geoghegan
Subject pgsql: Get heap page max offset with buffer lock held.
Date
Msg-id E1kumfB-0006mT-1x@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Get heap page max offset with buffer lock held.

On further reflection it seems better to call PageGetMaxOffsetNumber()
after acquiring a buffer lock on the page.  This shouldn't really
matter, but doing it this way is cleaner.

Follow-up to commit 42288174.

Backpatch: 12-, just like commit 42288174

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/55e5352266b1edc943a2a57a5d349aac73bac1a2

Modified Files
--------------
src/backend/access/heap/heapam.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: pgsql: Fix index deletion latestRemovedXid bug.
Next
From: Alexander Korotkov
Date:
Subject: Re: pgsql: Doc: fix up PDF build warnings from over-width table columns.