~/talk

Understanding Advanced Datatypes in PostgreSQL

Talkat PGConf Silicon Valley 2016 · 2016-11-14..11-16· [databases]
links:none on file
slides:none on file

Advocates defaulting to bigserial or uuid for IDs and using text over varchar; recommends timestamp with time zone always and jsonb instead of json. Describes arrays, gin-indexed ts_vectors, and range types with exclusion constraints for fast temporal queries. Notes TOAST pushes values out of line around ~2KB, and points to extensions: email/uri types, PostGIS, ip4r and a physical units type. Gives concrete examples and tradeoffs for storage and indexing.

AI-written summary · about

  1. 0:00Intro
  2. 1:24Basic types surrogate keys
  3. 5:53Text: Use indexes for pattern- matching An index supports prefixes (LIKE 'Peters)
  4. 11:22Time travel: interval
  5. 12:07Boolean values
  6. 12:32Binary data
  7. 13:20Don't use
  8. 16:00Internals: What's a type?
  9. 17:12Internals: How does it work?
  10. 19:36Internals: TOAST is great
  11. 22:26Internals: Make TOAST faster
  12. 23:59Advanced types greatest hits
  13. 24:23Array: What?
  14. 29:18JSON(b): jsonb vs json
  15. 30:50JSON(b): Anti-patterns
  16. 33:32Enums: How?
  17. 34:24Ranges: What?
  18. 35:18Ranges: How? (Basics) Ranges can be created mid-query
  19. 36:21Ranges: How? (Window functions)
  20. 38:25Email Addresses
  21. 38:54emailaddr
  22. 40:07Skip the migration!
  23. 40:24Geometry: What?
  24. 40:42PostGIS: What?
  25. 41:54Network addresses
  26. 42:15Physical Units
  27. 45:05Domains: Examples
  28. 45:23Domains & Arrays
  29. 45:42Composite Types: How? (1/2)
  30. 46:19DIY functions
  31. 46:44DIY Operators
  32. 47:41Images
  33. 48:36Basic data types to use
~/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.