lsm
lsm · RocksDB foreign data wrapper for PostgreSQL
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100154 | lsm | lsm | 0.1 | FDW | Apache-2.0 | C++ |
PostgreSQL · 11, 12, 13
Usage
Sources:
lsm embeds RocksDB in a PostgreSQL backend and exposes it through the lsm_fdw foreign-data wrapper. Build compatibility depends on both PostgreSQL and RocksDB; the reviewed upstream reports only Ubuntu 18.04, PostgreSQL 11, and RocksDB 6.2.4 testing. Add lsm to shared_preload_libraries and restart before use.
The first foreign-table attribute acts as the primary key, and composite primary keys are unsupported. PostgreSQL data types are not stored natively, and upstream says ACID behavior relies on the storage engine.
RocksDB files are external state from PostgreSQL’s perspective. Prove backup, restore, crash recovery, replication, transaction abort, concurrent access, and cleanup behavior before storing important data. The upstream removal example names the wrong extension, so use the installed catalog name and preserve the RocksDB directory until recovery requirements are settled.