~/talk

Exploring the benefits of learned indexes in PostgreSQL: Theory and Implementation

Talkat PGConf.dev 2025 · 2025-05-13..05-16· [databases, machine-learning]

Built an extension that wraps the ALEX learned index and calls its C++ API via the PostgreSQL AM hooks, bulk‑loading tuples from heap into an in‑memory ALEX and measuring fallback ratio and gap density for planner costing. Experiments show ALEX’s in‑memory design clashes with PostgreSQL’s disk‑first durability and shared buffers so that serializing ALEX to disk is slower than B‑tree, making generic replacement infeasible; focus shifts to temporary in‑memory indexes for joins, ingest, FDWs and ML pipelines as plausible niches.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 10:04What are learned indexes
  3. 21:24Learned index models Alex and RMI
  4. 31:58Integration challenges in PostgreSQL
  5. 40:52Cost modeling and statistics
  6. 47:52Conclusion and future work
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.