From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Get heap page max offset with buffer lock held.
Date: Thu, 31 Dec 2020 01:22:01 +0000
Message-ID: <E1kumfB-0006mW-2P@gemulon.postgresql.org> (raw)
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_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/5f95664e191974d275381577db87858cc121e0f4
Modified Files
--------------
src/backend/access/heap/heapam.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: pg@bowt.ie
Subject: Re: pgsql: Get heap page max offset with buffer lock held.
In-Reply-To: <E1kumfB-0006mW-2P@gemulon.postgresql.org>
References: <E1kumfB-0006mW-2P@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox