Sikau

Learn PostgreSQL

PostgreSQL in depth: JSONB, window functions, triggers and security.

Go beyond standard SQL with the world's most advanced open-source database: identity and generated columns, time zones, JSONB, arrays and enums, upserts, window functions, views, full-text search, recursive queries, functions and triggers, roles and row-level security, and performance tuning — on real PostgreSQL 18 in your browser.

Advanced · 16 lessons · about 9 hours · free

Start PostgreSQL free: run real code in your browserright here

Continue with Google

What you will learn

Unit 1: PostgreSQL power types

Identity and generated columns, time, JSONB, arrays, enums and upserts.

  1. Day 1Why PostgreSQL?The database that does (almost) everything.25 min
  2. Day 2Dates, times and intervalstimestamptz, intervals, date_trunc and time zones.30 min
  3. Day 3JSONB documentsFlexible data inside a relational database.35 min
  4. Day 4Arrays and enumsLists in a column and fixed sets of values.25 min
  5. Day 5Upserts with ON CONFLICTInsert or update in one statement.25 min
  6. Day 6Project: App event logJSONB, enums, time and upserts together.40 min

Unit 2: Advanced querying

Window functions, views, full-text search and recursive queries.

  1. Day 7Window functionsRanks, running totals and comparisons — without losing rows.40 min
  2. Day 8Views and materialized viewsName a query; store its result when it's expensive.30 min
  3. Day 9Full-text searchSearch words properly, with stemming and ranking.35 min
  4. Day 10Recursive queriesWalk trees: categories, org charts, replies.30 min
  5. Day 11Project: Staff leaderboardWindows and views for a live dashboard.40 min

Unit 3: Logic, security and operations

Functions, triggers, roles, row-level security, performance and running Postgres.

  1. Day 12Functions and triggersLogic inside the database.40 min
  2. Day 13Roles and row-level securityLeast privilege and per-row access rules.40 min
  3. Day 14Performance tuningEXPLAIN ANALYZE, partial and expression indexes.35 min
  4. Day 15Running PostgreSQLBackups, migrations, pooling, replicas and managed hosting.20 min
  5. Day 16Capstone: Multi-branch reportingTriggers, RLS, windows and views together.60 min

Before you start

These courses make PostgreSQL easier:

See all courses

Built with ❤️ by dibe.sh