RefLib

Reference library for AI

Back

postgresql_16:6.6.6.2 Returning from a Procedure

PostgreSQL 16 > Server Programming > PL/pgSQL — SQL Procedural Language > Control Structures > Returning from a Procedure

A procedure does not have a return value. A procedure can therefore end without a RETURN statement. If you wish to use a RETURN statement to exit the code early, write just RETURN with no expression.

If the procedure has output parameters, the final values of the output parameter variables will be returned to the caller.

Back