//
Busca en todas las páginas de la documentación
5 pages in this section.
SQL vs PL/pgSQL functions - when to use each.
Variables, control flow, and `FOUND`.
Multi-step logic inside the database.
`IMMUTABLE`/`STABLE`/`VOLATILE` and planner effects.
Prefer SQL functions when possible; audit SECURITY DEFINER.