pgsql: nbtree: Rename BT_RESERVED_OFFSET_MASK.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: nbtree: Rename BT_RESERVED_OFFSET_MASK.
Date: 2020-04-22 23:12:09
Message-ID: E1jROXJ-0001kN-0n@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

nbtree: Rename BT_RESERVED_OFFSET_MASK.

The mask was added by commit 8224de4f, which introduced INCLUDE nbtree
indexes. The status bits really were reserved initially. We now use 2
out of 4 of the bits for additional tuple metadata, though. Rename the
mask to BT_STATUS_OFFSET_MASK.

Also consolidate related nbtree.h code comments about the format of
pivot tuples and posting list tuples.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/48107e396f75ea65192153707a8c476f66b59061

Modified Files
--------------
src/include/access/nbtree.h | 69 ++++++++++++++++++++-------------------------
1 file changed, 31 insertions(+), 38 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-04-23 01:33:00 pgsql: Doc: improve description of geometric multiplication/division.
Previous Message Tomas Vondra 2020-04-22 22:44:55 pgsql: Fix cost_incremental_sort for expressions with varno 0