Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Guidelines

Use page descriptions to select pages before loading them. After loading a conditional page, apply it only when its Activation section matches.

Foundations

Schema Design and Data Types

Constraints and Indexes

  • Constraints and NULL semantics - load for NOT NULL policy, CHECK constraints, uniqueness, and temporal constraints.
  • Index basics - load when adding ordinary indexes, indexing FKs, or choosing unique constraint vs unique index.
  • Advanced indexes - load for partial, expression, multicolumn, covering, or GIN indexes.

Query Style

Database Logic

  • Functions and procedures - load when writing database functions; covers language choice, volatility, and security modes.
  • Views and materialized views - load when adding views or materialized views and their refresh strategies.
  • Triggers - load when a trigger is proposed; covers the minimal-trigger doctrine and the narrow valid cases.

Security