~/talk

Vectors: how to better support a nasty data type in PostgreSQL

Talkat PGConf.dev 2024 · 2024-05-28..05-31· [databases, machine-learning]
links:none on file
slides:none on file

Explains concrete engineering: pgvector extensions (versions 0.5, 0.6, 0.7) add IVF‑flat and HNSW indexing, SIMD/CPU dispatch and parallel index builds that cut build time 30–150x; shows HNSW defaults like m=16, e_construction≈256, quantization options (scalar ≈8–9x size, binary up to ~16x), and real numbers—1,536‑dim vectors ≈6 KB each, billions handled, P99 latency and throughput scaling. Identifies remaining work: filtering/WHERE interactions, TOAST and 8 KB page limits, double storage for table+index, vacuum/update costs, and distributed/parallel query gaps.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:09Why vectors matter in AI
  3. 10:59Postgres as a vector database
  4. 17:57Indexing vectors in PG Vector
  5. 24:36Quantization techniques
  6. 31:17Index build time impact
  7. 34:31The 8KB page size problem
  8. 39:06Filtering and hybrid search
  9. 42:21Vacuum and updates in PG Vector
  10. 43:02Distributed queries and parallelism
  11. 44:46Hardware acceleration
  12. 45:50Future challenges: tensors
  13. 47:13Priorities for PG Vector
  14. 48:36Summary and call to action
  15. 48:56Q&A
~/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.