~/talk

What you should know about constraints in PostgreSQL 18

Talkat Berlin Buzzwords 2026 · 2026-06-07..06-09· [databases]
slides:none on file

PostgreSQL 18 adds concrete changes to constraints: temporal keys (primary/unique/foreign keys over range periods, implemented via btree_gist/EXCLUDE-style logic and rejecting overlapping ranges), NOT NULL as a first-class constraint (named, deferrable, storable in pg_constraint and usable with NOT VALID), and NOT ENFORCED constraints (creates informational constraints without triggers until flipped, with per-partition validation support). The talk demos pg_constraint queries, explains constraint triggers and domains, notes empty ranges aren’t supported, and previews Postgres 19’s split/update/delete-for-portion behavior.

AI-written summary · about

  1. 0:00Introduction to constraints
  2. 1:11PostgreSQL constraint catalog
  3. 13:58Temporal keys in PostgreSQL 18
  4. 27:02Not enforced constraints
  5. 31:35Not null as a proper constraint
  6. 36:33What's coming in PostgreSQL 19
~/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.