Lesson 2.3

Data types and JSONB

Postgres has rich types, and JSONB for the genuinely unstructured remainder. Reaching for JSONB too early throws away every guarantee above.

Duration
13m
Level
Intermediate
Students
8.8k students

Overview

Postgres has rich types, and JSONB for the genuinely unstructured remainder. Reaching for JSONB too early throws away every guarantee above.

In this lesson you will:

  • Pick precise types for time, money, and identifiers
  • Use JSONB for genuinely variable data only
  • Index inside a JSONB column when you must query it

Resources

PostgreSQL documentation

The official reference for the tools used in this lesson.