~/talk

Constraints: a Developer's Secret Weapon

Talkat pgDay Paris 2018 · on Thursday, 2018-03-15· [databases, developer-experience]
slides:none on file

Argues that Postgres constraints turn the DB into the last line of defense, showing concrete wins: a system with 71 migrations vs 1,200 releases (then 20 migrations vs 200 releases) proves app code changes far faster than schema, so put checks in the DB. Demonstrates practical tools: unique/partial unique indexes, NOT NULL, enums, JSON + check casts, range types and a gist-backed exclusion constraint on time ranges to prevent overlapping billing periods. Notes insert-time cost on heavy ingestion workloads and that constraints can be relaxed later for performance.

AI-written summary · about

  1. 0:00The importance of constraints
  2. 3:56Lessons from development
  3. 7:15Database as a last defense
  4. 12:05Basic and unique constraints
  5. 15:07Leveraging data types
  6. 21:23Using foreign keys
  7. 23:45Custom check constraints
  8. 27:46Exclusion constraints
  9. 30:44Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.