pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Naylor <john.naylor@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Teach TID store to skip bitmap for small numbers of offsets
Date: Mon, 08 Apr 2024 11:48:28 +0000
Message-ID: <E1rtnUC-0017c1-EE@gemulon.postgresql.org> (raw)

Teach TID store to skip bitmap for small numbers of offsets

The header portion of BlocktableEntry has enough padding space for
an array of 3 offsets (1 on 32-bit platforms). Use this space instead
of having a sparse bitmap array. This will take up a constant amount
of space no matter what the offsets are.

Reviewed (in an earlier version) by Masahiko Sawada

Discussion: https://postgr.es/m/CANWCAZYw+_KAaUNruhJfE=h6WgtBKeDG32St8vBJBEY82bGVRQ@mail.gmail.com
Discussion: https://postgr.es/m/CAD21AoBci3Hujzijubomo1tdwH3XtQ9F89cTNQ4bsQijOmqnEw@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/access/common/tidstore.c               | 129 +++++++++++++++------
.../test_tidstore/expected/test_tidstore.out       |  28 +++++
.../modules/test_tidstore/sql/test_tidstore.sql    |  10 ++
3 files changed, 130 insertions(+), 37 deletions(-)



Message-ID: <E1rtnUC-0017c1-EE@gemulon.postgresql.org>
Permalink:  ../E1rtnUC-0017c1-EE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rtnUC-0017c1-EE@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: john.naylor@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Teach TID store to skip bitmap for small numbers of offsets
  In-Reply-To: <E1rtnUC-0017c1-EE@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