postgresql_16:6.6.6 Control Structures
PostgreSQL 16 > Server Programming > PL/pgSQL — SQL Procedural Language > Control Structures
Control structures are probably the most useful (and important) part of PL/pgSQL. With PL/pgSQL's control structures, you can manipulate PostgreSQL data in a very flexible and powerful way.
Subsections
- postgresql_16:6.6.6.1 Returning from a Function
- postgresql_16:6.6.6.2 Returning from a Procedure
- postgresql_16:6.6.6.3 Calling a Procedure
- postgresql_16:6.6.6.4 Conditionals
- postgresql_16:6.6.6.5 Simple Loops
- postgresql_16:6.6.6.6 Looping through Query Results
- postgresql_16:6.6.6.7 Looping through Arrays
- postgresql_16:6.6.6.8 Trapping Errors
- postgresql_16:6.6.6.9 Obtaining Execution Location Information