Zedstore - In-core Column Store for Postgres
summary
Zedstore implements a table AM for Postgres v12 that stores each column as a B-tree-like attribute trees, uses MVCC/undo slots, and applies inline PGLZ/LZ4 compression. On a TPC-DS workload a single-column query reads ~1.4 GB vs 112 GB for heap and shows ~one-third the IO time on NVMe; concurrent loads drop from 100→7 minutes by reserving TID ranges. It works for OLAP projections but suffers random reads on HDD; fixes (per-attribute FPM, row-extension, planner/AM API tweaks) improve but further engineering is needed.
AI-written summary · about
chapters (17)
- 0:00Introduction to Zedstore
- 1:52Zedstore design overview
- 4:22Creating a demo table
- 8:37Page types in Zedstore
- 11:49Projection and scan process
- 13:16Page layout details
- 17:46Handling oversized data
- 19:12Data compression and repacking
- 22:43On-disk footprint comparison
- 25:29Single column projection performance
- 29:44Reducing random reads on HDD
- 33:03Select star performance
- 34:06Storage perf test suite
- 34:47Open areas of work
- 39:21Planner awareness and future plans
- 40:24How to get involved
- 41:06Q&A session
