]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Get heap page max offset with buffer lock held.
authorPeter Geoghegan <pg@bowt.ie>
Thu, 31 Dec 2020 01:21:41 +0000 (17:21 -0800)
committerPeter Geoghegan <pg@bowt.ie>
Thu, 31 Dec 2020 01:21:41 +0000 (17:21 -0800)
commit55e5352266b1edc943a2a57a5d349aac73bac1a2
tree62cf5fd5d19a08d950f7a6974119d3fdac6e73e5
parent7a57960ba6a7ae74d0830d0c766c275c288ed51a
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
src/backend/access/heap/heapam.c