Concept Flow - RAISE for notices and exceptions
Start PL/pgSQL block
Execute statements
RAISE statement encountered?
No→Continue execution
Yes
Check RAISE level: NOTICE, WARNING, EXCEPTION
NOTICE/WARNING: Show message, continue
EXCEPTION: Show error, stop execution
End block or handle exception
The flow shows how a RAISE statement in PostgreSQL PL/pgSQL triggers messages or errors, either continuing or stopping execution.