~/talk

Experimenting with a Global Index in PostgreSQL

Talkat PGConf.dev 2026 · 2026-05-19..05-22· [databases]
links:none on file
slides:none on file

Experimental global indexes store a partition identifier as last key column so B-tree deduplication and suffix truncation work without changing on-disk format, and a new PG_index_partition mapping gives each global-index+leaf pair a unique id that is invalidated on detach to allow fast drops. Attaching currently rewrites the global index; scans convert partition id to relation id via a cached map. Vacuuming is the biggest problem — with 1,000 partitions of 50k rows each time rises from 15 seconds → 45 minutes — solutions: aggregate dead-TIDs and vacuum the global index once or fully decouple heap and index vacuum; locking on leaf-level DML remains unresolved.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:51Use case for global index
  3. 5:02Design goals for implementation
  4. 6:50Global index storage design
  5. 12:30Partition identifier challenges
  6. 19:52Attaching and detaching partitions
  7. 23:22Global index scan and optimization
  8. 33:35Vacuum challenges and solutions
  9. 44:18Summary and open challenges
  10. 45:26Q&A session
~/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.