~/talk

What You Should Know About Constraints in PostgreSQL (and What’s New in 18

Talkat PostgreSQL Conference Europe 2025 · 2025-10-21..10-24· [databases]
slides:none on file

PostgreSQL 18 makes NOT NULL a first‑class, named NOT NULL constraint stored in pg_constraint, adds NOT ENFORCED flags for CHECK and foreign keys so constraints can exist unvalidated (no trigger/indexes until enforced), and implements temporal keys via WITHOUT OVERLAPS for PRIMARY/UNIQUE using range/multirange (GIST-backed), plus per‑partition validation and ALTER CONSTRAINT ... [NO] INHERIT control. Collation rules now require deterministic or matching nondeterministic collations for key relations.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09What is a constraint
  3. 8:34Constraint triggers
  4. 12:06Domain constraints
  5. 15:37Temporal database support
  6. 22:10Temporal keys in PostgreSQL 18
  7. 27:42Not enforced constraints
  8. 32:18Not null as a constraint
  9. 35:46Partition table improvements
  10. 36:49Parent constraint removal
  11. 37:53Q&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.