~/talk

BRIN improvements and new opclasses

Talkat PGCon 2023 · 2023-05-30..06-02· [databases]
slides:none on file

BRIN indexes chunk the heap into ~1MB ranges and store compact summaries so a 3.5GB table yields a BRIN under 1MB versus a B-tree ~50–65MB; on 10M-row tests BRIN eliminates ~95% of blocks then bitmap-scans the rest, giving big wins over sequential scans but B-tree still beats BRIN for point lookups (milliseconds vs ~1s). Postgres 14 adds minmax_multi (multiple intervals per range) and a bloom opclass for random keys, plus operator-class parameters and a parallel CREATE INDEX patch; randomized concurrent stress tests expose long-standing bugs and guide fixes.

AI-written summary · about

  1. 0:00Start
  2. 3:15BTREE - traditional tree-like index
  3. 6:08BRIN - block range index
  4. 17:08Problems (minmax)
  5. 21:05minmax-multi opclass
  6. 24:50bloom opclass parameters
  7. 28:20HOT updates (PG15)
  8. 30:33Future improvements (?)
  9. 36:05Stress testing
~/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.