~/talk

A Deep Dive into PostgreSQL Indexing

Talkat PGConf NYC 2021 · 2021-12-02..12-03· [databases]
linkedin:ibrarahmed74
slides:none on file

Shows concrete results: adding a B‑tree on id drops a 26,162 ms sequential lookup to ~2.56 ms; create index concurrently doubles build time (12s → 23s) but avoids locks; expression indexes (eg lower(name)) make previously unused indexes become used; partial index shrinks 214 MB to ~240 KB for a hot range; discusses pg_stat_statment, ctid/index‑only scans, and when BRIN, GIN, hash or GiST actually help versus wasting space.

AI-written summary · about

  1. 0:00Start
  2. 6:01PostgreSQL Tables (Heap)
  3. 7:50Sequential Scan
  4. 12:57Creating Index (CONCURRENTLY)
  5. 16:31Expression Index 2/2
  6. 17:07Partial Index
  7. 19:51B-Tree Index
  8. 23:50Index Only Scans
  9. 27:13Hash Index
  10. 38:21Duplicate Indexes
  11. 41:13Supported Data Types For A Particular Indexes
  12. 42:20Unused Indexes
~/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.