~/talk

pg_search: Bringing Elasticsearch-Grade Search to PostgreSQL

Talkat PGConf India 2026 · 2026-03-11..03-13· [databases]
links:none on file
slides:none on file

pg_search is a Rust PostgreSQL extension that embeds Tantivy into PostgreSQL via Custom Scan API and planner hooks (set_rel_pathlist_hook, create_upper_paths_hook) to intercept @@@ queries and push BM25 scoring, faceting and aggregations into an on-disk index stored in Postgres block storage with MVCC-aware directories. TopN execution and columnar fast fields push ORDER BY/LIMIT and GROUP BY into the index, yielding sub-100 ms queries at millions of rows — measured 81 ms vs 38,797 ms in Neon benchmarks — and removes the need for separate Elasticsearch infrastructure.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:08Full text search basics
  3. 3:37Current Postgres full text search
  4. 8:11Limitations of Postgres ranking
  5. 10:18Introducing PG Search
  6. 14:11Querying the PG Search index
  7. 15:56Top K search performance
  8. 19:08Top K with facets
  9. 21:13Query pushdown and ranking control
  10. 22:59Summary and benefits
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.