The plpy module also provides the
functions plpy.debug(msg), plpy.log(msg),
plpy.fatal actually raise a Python exception
which, if uncaught, propagates out to the calling query, causing
the current transaction or subtransaction to be aborted.
raise plpy.Error(msg) and raise
equivalent to calling
plpy.fatal, respectively. The
other functions only generate messages of different priority
levels. Whether messages of a particular priority are reported to
the client, written to the server log, or both is controlled by
configuration variables. See Chapter 18 for more information.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.