~/talk

Even JSONB In Postgres Needs Schemas

Talkat POSETTE: An Event for Postgres 2024 · 2024-06-11..06-13· [databases]
slides:none on file

Postgres stores JSON efficiently with JsonB but still needs enforced shapes: uses GIN indexes for fast contains queries, jsonb_typeof to assert root types, and jsonb_array_elements plus aggregates like bool_and inside SQL functions to validate every array element. CHECK constraints call immutable validation functions or, if available, the pg_jsonschema extension (Rust) to match a JSON Schema. A generator can emit those SQL validators when extensions aren’t allowed.

AI-written summary · about

  1. 0:00Intro
  2. 2:19Handling complex or unknown data
  3. 3:58PostgreSQL JSON support
  4. 9:39Things can go wrong
  5. 11:52Finding the type
  6. 13:00Check constraints
  7. 14:29Structure
  8. 17:50Functions to the rescue
  9. 19:57JSON schemas
~/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.