This document provides an introduction to stored procedures in PostgreSQL, including why they should and should not be used. It discusses how to write stored procedures using SQL and PL/pgSQL and how to execute them. It also covers using triggers to call stored procedures, automatic variables in triggers, and using views and rules as alternatives to stored procedures.