Introduction
RAISE helps you send messages or stop your code when something important happens. It tells you about warnings or errors in your database code.
You want to show a message to explain what your code is doing.
You need to warn about a possible problem but keep running the code.
You want to stop the code because something went wrong.
You want to debug by printing values during code execution.
You want to handle errors clearly in your database functions.