01Chapter 1: What PL/pgSQL is and when to use itThis chapter assumes you know basic SQL (SELECT, INSERT, UPDATE, DELETE), can run statements in psql or another client, and understand simple variables and conditionals. You should also have a PostgreSQL database you can write to.1 min read
02Chapter 2: Control flow: IF, CASE, and loopsThis chapter assumes you know basic SQL (SELECT, INSERT, UPDATE, JOIN), can run CREATE FUNCTION in psql, and understand variables and conditionals in another language.1 min read
03Chapter 3: Raising and handling errorsThis chapter assumes you can write basic SQL, know PostgreSQL tables and data types, and understand variables and conditionals. It covers error handling, function settings, procedures, dynamic SQL, triggers, and performance.2 min read