pgsql: Add macros in hash and btree AMs to get the special area of thei

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add macros in hash and btree AMs to get the special area of thei
Date: 2022-04-01 04:30:40
Message-ID: E1na8vn-000Fk6-L5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-04-01 11:17:48 pgsql: psql: Refactor ProcessResult()
Previous Message Michael Paquier 2022-04-01 03:47:31 pgsql: Improve handling and logging of TAP tests for pg_upgrade