elog> level, msg
- Emit a log or error message. Possible levels are DEBUG>,
- NOTICE>, and ERROR>.
- DEBUG> and NOTICE> simply emit the given message
- into the postmaster log (and send it to the client too, in the case of
- NOTICE>). ERROR> raises an error condition:
- further execution of the function is abandoned, and the current
- transaction is aborted.
+ Emit a log or error message. Possible levels are
+ DEBUG>, LOG>, INFO>,
+ NOTICE>, WARNING>, and ERROR>.
+ ERROR> raises an error condition: further execution
+ of the function is abandoned, and the current transaction is
+ aborted.
-
+
PL/Python - Python Procedural Language
this module are available to you in the Python code as
plpy.foo. At present
plpy implements the functions
- plpy.error("msg"),
- plpy.fatal("msg"),
- plpy.debug("msg"), and
- plpy.notice("msg"). They are mostly equivalent
- to calling elog(LEVEL>, "msg"),
- where LEVEL> is DEBUG, ERROR, FATAL or NOTICE.
+ plpy.debug("msg"),
+ plpy.log("msg"),
+ plpy.info("msg"),
+ plpy.notice("msg"),
+ plpy.warning("msg"),
+ plpy.error("msg"), and
+ plpy.fatal("msg"). They are mostly equivalent
+ to calling elog(LEVEL>, "msg").
plpy.error and plpy.fatal
actually raise a Python exception which, if uncaught, causes the
PL/Python module to call elog(ERROR, msg) when
elog> level msg
- Emit a log or error message. Possible levels are DEBUG>,
- NOTICE>, ERROR>, and FATAL>.
- DEBUG> and NOTICE> simply emit the given message
- into the postmaster log (and send it to the client too, in the case of
- NOTICE>). ERROR> raises an error condition:
- further execution of the function is abandoned, and the current
- transaction is aborted. FATAL> aborts the transaction and
- causes the current backend to shut down (there is probably no good
- reason to use this error level in PL/Tcl functions, but it's provided
- for completeness).
+ Emit a log or error message. Possible levels are
+ DEBUG>, LOG>, INFO>,
+ NOTICE>, WARNING>, ERROR>, and
+ FATAL>. Most simply emit the given message just like
+ the elog> backend C function. ERROR>
+ raises an error condition: further execution of the function is
+ abandoned, and the current transaction is aborted.
+ FATAL> aborts the transaction and causes the current
+ backend to shut down (there is probably no good reason to use
+ this error level in PL/Tcl functions, but it's provided for
+ completeness).