public inbox for [email protected]
help / color / mirror / Atom feedFrom: Peter Geoghegan <[email protected]>
To: [email protected]
Subject: pgsql: nbtree: Make BTMaxItemSize into object-like macro.
Date: Tue, 11 Mar 2025 14:36:34 +0000
Message-ID: <[email protected]> (raw)
nbtree: Make BTMaxItemSize into object-like macro.
Make nbtree's "1/3 of a page limit" BTMaxItemSize function-like macro
(which accepts a "page" argument) into an object-like macro that can be
used from code that doesn't have convenient access to an nbtree page.
Preparation for an upcoming patch that adds skip scan to nbtree.
Parallel index scans that use skip scan will serialize datums (not just
SAOP array subscripts) when scheduling primitive scans. BTMaxItemSize
will be used by btestimateparallelscan to determine how much DSM to
request.
Author: Peter Geoghegan <[email protected]>
Discussion: https://postgr.es/m/CAH2-Wz=H_RG5weNGeUG_TkK87tRBnH9mGCQj6WpM4V4FNWKv2g@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/426ea611171da4e60ab4f3863fa3cc3683ae9547
Modified Files
--------------
contrib/amcheck/verify_nbtree.c | 3 +--
src/backend/access/nbtree/nbtdedup.c | 6 +++---
src/backend/access/nbtree/nbtinsert.c | 2 +-
src/backend/access/nbtree/nbtsort.c | 4 ++--
src/backend/access/nbtree/nbtutils.c | 7 +++----
src/backend/access/nbtree/nbtxlog.c | 2 +-
src/include/access/nbtree.h | 8 ++++----
7 files changed, 15 insertions(+), 17 deletions(-)
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: [email protected]
Cc: [email protected], [email protected]
Subject: Re: pgsql: nbtree: Make BTMaxItemSize into object-like macro.
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox