< All notes

Topic notes

PostgreSQL

Indexing, SKIP LOCKED queues, UUID key design, and safe schema migration for PostgreSQL systems.

For developers who can write basic SQL. Follow the list from query contracts to pagination, indexes and plans, then constraints, concurrency, and migrations.

Topic notes

A SELECT Needs Four Decisions: Columns, Rows, Order, Limit

Why does the next page repeat a row? OFFSET and keyset pagination

Indexes follow query shape, not a column checklist

Do not add an index first: use EXPLAIN, statistics, and ANALYZE to see what PostgreSQL is guessing

PostgreSQL RLS is not an automatic WHERE clause: four boundaries for multi-tenant data

Supabase RLS Beyond the Policy UI: Make Authorization SQL Testable

A Database Is Not a JSON Blob: Let Constraints Protect Data

Before JOIN Syntax, Count the Relationship

PostgreSQL 18 Skip Scan: The Leftmost Rule, Revisited

A schema migration is not one SQL statement: expand, backfill, and observe before you contract

PostgreSQL SKIP LOCKED: Job Queue, Not Magic Broker

Transaction Boundaries for Orders, Inventory, and ACID

UUIDv7 for Primary Keys: Better, Not Universal

PgBouncer does not make PostgreSQL infinite: budget connections before choosing a pool mode

PostgreSQL backups: what pg_dump, WAL, and PITR actually do