~/talk

PostgreSQL Design Patterns

Talkat POSETTE: An Event for Postgres 2026 · 2026-06-16..06-18· [databases]
slides:none on file

Shows concrete patterns and working SQL: use a timestamp range column (generated from start/end) plus an exclusion constraint (GiST + btree_gist) to prevent double-booking; use INT4RANGE for age buckets and JSONB + GIN for flexible filters; add PostGIS geometry (SRID 4326) and st_dwithin for 2 km radius searches; enforce single-active subscription with a partial unique index on status='active'; implement a reliable task queue using SELECT ... FOR UPDATE SKIP LOCKED with a partial index on not_processed and idempotency via unique idempotency_key + ON CONFLICT DO NOTHING.

AI-written summary · about

  1. 0:00Introduction & Postgres design patterns overview
  2. 0:10Creative engineering & real-world context
  3. 2:14Modelling physical events (time & venue)
  4. 2:38Range types for time overlaps
  5. 4:19Generated columns & exclusion constraints
  6. 6:41Age ranges, GDPR & smart filtering
  7. 8:08Arrays & JSON for flexible filtering
  8. 11:16Adding geolocation with PostGIS
  9. 13:36Distance queries & geo indexing
  10. 16:06Enforcing business rules with partial indexes
  11. 18:19Task queues, idempotency & safe payments
~/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.