tessera
tessera · Batch executor bridge with C nodes and Rust kernels
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102417 | tessera | tessera | 0.1 | OLAP | PostgreSQL | C |
PostgreSQL · 18, 19
Usage
Sources:
tessera is the bridge for a batch executor over ordinary PostgreSQL heap tables. The project supplies C modules and Rust kernels for supported analytical plan nodes. SQL extension version 0.1 loads the bridge; it exposes a C rendezvous API rather than SQL functions. Upstream targets PostgreSQL 18, 19 and development master.
Enable the Modules
Install matching bridge, node and kernel libraries. For regular use, preload them in this order and restart PostgreSQL:
Preserve existing library entries. Create the extension as a superuser and compare plans on representative data:
The bridge must load before the node and kernel modules. Session preload in the same order is also supported for development. CREATE EXTENSION only loads the bridge in the creating backend; its catalog presence does not load it in later connections. A fresh connection must preload or explicitly load the libraries.
Plans and Limits
Supported nodes include heap/index scans, batch filters and aggregates, hash joins, sorting and set operations. Unsupported nodes remain PostgreSQL nodes in a mixed plan. Window functions, foreign tables, other table access methods, and scans that write or lock rows remain on the ordinary executor. Inspect EXPLAIN for actual selection; no speedup is guaranteed.
Visibility follows the PostgreSQL snapshot. Hashes and sorts use work_mem and hash_mem_multiplier and can spill under temp_file_limit. Cancellation is checked in batch loops. Rebuild modules when changing PostgreSQL installations and replace loaded postmaster/session libraries when upgrading. The project is under active development; validate result equivalence and workload behavior before use.