From ade0fe5cb47af11ea0cc4eaaffe2af4d6b4e302f Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 6 Mar 2002 19:05:58 +0000 Subject: [PATCH] Update docs for new stored procedure error levels. --- doc/src/sgml/plperl.sgml | 15 +++++++-------- doc/src/sgml/plpython.sgml | 16 +++++++++------- doc/src/sgml/pltcl.sgml | 23 ++++++++++++----------- 3 files changed, 28 insertions(+), 26 deletions(-) diff --git a/doc/src/sgml/plperl.sgml b/doc/src/sgml/plperl.sgml index 8fb6f36074a..c04ff95d929 100644 --- a/doc/src/sgml/plperl.sgml +++ b/doc/src/sgml/plperl.sgml @@ -1,5 +1,5 @@ @@ -278,13 +278,12 @@ CREATE FUNCTION badfunc() RETURNS integer AS ' 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. diff --git a/doc/src/sgml/plpython.sgml b/doc/src/sgml/plpython.sgml index 768c26b569e..e0840c822a3 100644 --- a/doc/src/sgml/plpython.sgml +++ b/doc/src/sgml/plpython.sgml @@ -1,4 +1,4 @@ - + PL/Python - Python Procedural Language @@ -150,12 +150,14 @@ def __plpython_procedure_myfunc_23456(): 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 diff --git a/doc/src/sgml/pltcl.sgml b/doc/src/sgml/pltcl.sgml index 395861a81fc..af00cb73325 100644 --- a/doc/src/sgml/pltcl.sgml +++ b/doc/src/sgml/pltcl.sgml @@ -1,5 +1,5 @@ @@ -441,16 +441,17 @@ SELECT 'doesn''t' AS ret 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).