1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-06 19:59:18 +03:00
Masahiko Sawada 30e144287a Add TIDStore, to store sets of TIDs (ItemPointerData) efficiently.
TIDStore is a data structure designed to efficiently store large sets
of TIDs. For TID storage, it employs a radix tree, where the key is
a block number, and the value is a bitmap representing offset
numbers. The TIDStore can be created on a DSA area and used by
multiple backend processes simultaneously.

There are potential future users such as tidbitmap.c, though it's very
likely the interface will need to evolve as we come to understand the
needs of different kinds of users. For example, we can support
updating the offset bitmap of existing values.

Currently, the TIDStore is not used for anything yet, aside from the
test code. But an upcoming patch will use it.

This includes a unit test module, in src/test/modules/test_tidstore.

Co-authored-by: John Naylor
Discussion: https://postgr.es/m/CAD21AoAfOZvmfR0j8VmZorZjL7RhTiQdVttNuC4W-Shdc2a-AA%40mail.gmail.com
2024-03-21 10:08:42 +09:00

22 lines
383 B
Meson

# Copyright (c) 2022-2024, PostgreSQL Global Development Group
backend_sources += files(
'attmap.c',
'bufmask.c',
'detoast.c',
'heaptuple.c',
'indextuple.c',
'printsimple.c',
'printtup.c',
'relation.c',
'reloptions.c',
'scankey.c',
'session.c',
'syncscan.c',
'tidstore.c',
'toast_compression.c',
'toast_internals.c',
'tupconvert.c',
'tupdesc.c',
)