undam
UNDO storage table access method with in-place updates
undam · UNDO storage table access method with in-place updates
Overview
Usage
Sources:
- undam README at the reviewed commit
- undam.control at the reviewed commit
- Version 0.1 install SQL
- Table-access-method implementation
- Upstream preload configuration
- Upstream regression SQL
undam is an experimental table access method that performs in-place tuple updates while retaining older versions in undo chains. It stores fixed-size chunks across the main and extension forks and uses PostgreSQL generic WAL. Upstream calls the design a preview, and vacuum is still required.
Core Workflow
The module must allocate shared state during server startup:
Restart PostgreSQL, then create the extension and opt individual tables into the access method:
Existing heap tables are not converted by installing the extension. Use the USING undam clause only for tables whose data can be recreated during evaluation.
Object Index
undam: the table access method selected byCREATE TABLE ... USING undam.undam_rel_info(regclass): reports implementation diagnostics for an undam relation, including scan and chunk counters.undam.auto_chunk_size,undam.chunk_size,undam.alloc_chains, andundam.max_relations: startup/configuration settings that control chunk selection and shared relation state. Keep the upstream defaults unless the exact source and workload have been tested.
Operational Boundaries
_PG_init()rejects normal session-time loading;undammust be present inshared_preload_libraries, and changing that setting requires a restart.- Version
0.1is preview storage-engine code tied to PostgreSQL internal table-access APIs. The reviewed source includes explicitNOT_IMPLEMENTEDerror paths and no current supported-version matrix. - In-place updates do not eliminate MVCC history or maintenance. Undo-chain versions and reusable chunks still depend on vacuum and global visibility decisions.
- Because this replaces heap storage behavior, ordinary SQL success is insufficient validation. Test indexes, unique constraints, row locks, concurrent update/delete, long-running snapshots, vacuum, truncation, bulk load, TOAST-sized values, crash recovery, WAL replay, checksums, physical backup, replication, upgrade, and extension removal.
- Use only disposable data and the exact PostgreSQL build being evaluated. Do not move an undam relation between server builds or treat the sample as production endorsement without upstream compatibility and recovery evidence.