lsm3
lsm3 · LSM tree index access method based on PostgreSQL B-tree indexes
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100155 | lsm3 | lsm3 | 1.0 | FEAT | PostgreSQL | C |
Usage
Sources:
lsm3 implements an LSM-like index access method from three ordinary B-tree structures: an active top index, a merge top index, and a base index. It requires shared_preload_libraries and a restart before creating the SQL extension.
Each LSM3 index starts its own merge background worker. Size max_worker_processes, lsm3.max_indexes, and lsm3.top_index_size accordingly, and benchmark read amplification because scans merge three indexes.
Parallel scans and array keys are unsupported. Most importantly, LSM3 cannot enforce uniqueness: the index option unique=true is only a lookup optimization and does not reject duplicates. Never use it as a unique constraint. Version 1.0 has no current compatibility matrix; validate crash recovery, WAL replay, vacuum, concurrent merge, reindex, and upgrade behavior with disposable data.