From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add macros in hash and btree AMs to get the special area of thei
Date: Fri, 01 Apr 2022 04:30:40 +0000
Message-ID: <E1na8vn-000Fk6-L5@gemulon.postgresql.org> (raw)
Add macros in hash and btree AMs to get the special area of their pages
This makes the code more consistent with SpGiST, GiST and GIN, that
already use this style, and the idea is to make easier the introduction
of more sanity checks for each of these AM-specific macros. BRIN uses a
different set of macros to get a page's type and flags, so it has no
need for something similar.
Author: Matthias van de Meent
Discussion: https://postgr.es/m/CAEze2WjE3+tGO9Fs9+iZMU+z6mMZKo54W1Zt98WKqbEUHbHOBg@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d16773cdc86210493a2874cb0cf93f3883fcda73
Modified Files
--------------
contrib/amcheck/verify_nbtree.c | 32 +++++++++---------
contrib/pageinspect/btreefuncs.c | 6 ++--
contrib/pageinspect/hashfuncs.c | 6 ++--
contrib/pgstattuple/pgstatindex.c | 4 +--
contrib/pgstattuple/pgstattuple.c | 4 +--
src/backend/access/hash/hash.c | 6 ++--
src/backend/access/hash/hash_xlog.c | 26 +++++++--------
src/backend/access/hash/hashinsert.c | 6 ++--
src/backend/access/hash/hashovfl.c | 22 ++++++-------
src/backend/access/hash/hashpage.c | 30 ++++++++---------
src/backend/access/hash/hashsearch.c | 12 +++----
src/backend/access/hash/hashutil.c | 4 +--
src/backend/access/nbtree/nbtdedup.c | 6 ++--
src/backend/access/nbtree/nbtinsert.c | 46 +++++++++++++-------------
src/backend/access/nbtree/nbtpage.c | 58 ++++++++++++++++-----------------
src/backend/access/nbtree/nbtree.c | 2 +-
src/backend/access/nbtree/nbtsearch.c | 34 +++++++++----------
src/backend/access/nbtree/nbtsort.c | 12 +++----
src/backend/access/nbtree/nbtsplitloc.c | 2 +-
src/backend/access/nbtree/nbtutils.c | 6 ++--
src/backend/access/nbtree/nbtxlog.c | 34 +++++++++----------
src/include/access/hash.h | 2 ++
src/include/access/nbtree.h | 8 +++--
23 files changed, 186 insertions(+), 182 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: michael@paquier.xyz
Subject: Re: pgsql: Add macros in hash and btree AMs to get the special area of thei
In-Reply-To: <E1na8vn-000Fk6-L5@gemulon.postgresql.org>
References: <E1na8vn-000Fk6-L5@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