~/talk

Experimenting with a Global Index in PostgreSQL: Design, Implementation, and Challenges

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

A working patch implements a prototype global index in PostgreSQL using the same B-tree structure, adds a unique partition identifier mapping stored in pg_index_partition, and rewrites global indexes on attach while detaching simply invalidates IDs so old entries are ignored. Tests with ~1,000 partitions of 50,000 tuples each show index-only scans become far faster but VACUUM time jumps from ~15 seconds to ~45 minutes, exposing the need for a multi‑phase or decoupled heap/index vacuum (dead‑tid store) and scheduler work; code is on the hackers list.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:56Why global indexes are needed
  3. 5:46High-level design goals
  4. 7:11Storage design for global indexes
  5. 10:23Partition identifier challenges
  6. 14:39Attaching and detaching partitions
  7. 17:07Global index scan mechanics
  8. 20:24Design challenges with vacuuming
  9. 23:15Solutions for vacuuming global indexes
  10. 28:29Decoupling heap and index vacuum
  11. 31:19DDL and index rewriting issues
  12. 32:44Key takeaways and future work
~/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.