pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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-0006mT-1x@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_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(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1kumfB-0006mT-1x@gemulon.postgresql.org>
Permalink:  ../E1kumfB-0006mT-1x@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kumfB-0006mT-1x@gemulon.postgresql.org

 · 

reply

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-0006mT-1x@gemulon.postgresql.org>
  References: <E1kumfB-0006mT-1x@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