pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Convert many uses of ReadBuffer[Extended](P_NEW) to ExtendBuffer
Date: Thu, 06 Apr 2023 02:00:54 +0000
Message-ID: <E1pkEvl-001aOg-16@gemulon.postgresql.org> (raw)

Convert many uses of ReadBuffer[Extended](P_NEW) to ExtendBufferedRel()

A few places are not converted. Some because they are tackled in later
commits (e.g. hio.c, xlogutils.c), some because they are more
complicated (e.g. brin_pageops.c).  Having a few users of ReadBuffer(P_NEW) is
good anyway, to ensure the backward compat path stays working.

Discussion: https://postgr.es/m/20221029025420.eplyow6k7tgu6he3@awork3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/acab1b0914e426d28789731f50f5964dd4d2f054

Modified Files
--------------
contrib/bloom/blutils.c                | 12 ++----------
src/backend/access/brin/brin.c         |  9 ++++-----
src/backend/access/brin/brin_pageops.c |  4 ++++
src/backend/access/brin/brin_revmap.c  | 15 +++------------
src/backend/access/gin/gininsert.c     | 10 ++++------
src/backend/access/gin/ginutil.c       | 12 ++----------
src/backend/access/gist/gist.c         |  4 ++--
src/backend/access/gist/gistutil.c     | 13 ++-----------
src/backend/access/hash/hashpage.c     |  6 +++---
src/backend/access/nbtree/nbtpage.c    | 34 +++++++++-------------------------
src/backend/access/nbtree/nbtree.c     |  3 +++
src/backend/access/spgist/spgutils.c   | 13 ++-----------
src/backend/commands/sequence.c        |  3 ++-
13 files changed, 42 insertions(+), 96 deletions(-)



Message-ID: <E1pkEvl-001aOg-16@gemulon.postgresql.org>
Permalink:  ../E1pkEvl-001aOg-16@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pkEvl-001aOg-16@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Convert many uses of ReadBuffer[Extended](P_NEW) to ExtendBuffer
  In-Reply-To: <E1pkEvl-001aOg-16@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