By default, any error occurring in a
PL/pgSQL>
- function aborts execution of the function, and indeed of the
- surrounding transaction as well. You can trap errors and recover
+ function aborts execution of the function and the
+ surrounding transaction. You can trap errors and recover
from them by using a BEGIN> block with an
EXCEPTION> clause. The syntax is an extension of the
normal syntax for a BEGIN> block: