diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-03-06 19:05:58 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-03-06 19:05:58 +0000 |
commit | ade0fe5cb47af11ea0cc4eaaffe2af4d6b4e302f (patch) | |
tree | 1b9679eb0199579a79400bc7f9cd9a09267ff38a /doc/src/sgml/plpython.sgml | |
parent | 7d5edf2ba7c23ffebec978eb5c21b5d108aaaf2a (diff) | |
download | postgresql-ade0fe5cb47af11ea0cc4eaaffe2af4d6b4e302f.tar.gz postgresql-ade0fe5cb47af11ea0cc4eaaffe2af4d6b4e302f.zip |
Update docs for new stored procedure error levels.
Diffstat (limited to 'doc/src/sgml/plpython.sgml')
-rw-r--r-- | doc/src/sgml/plpython.sgml | 16 |
1 files changed, 9 insertions, 7 deletions
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 @@ -<!-- $Header: /cvsroot/pgsql/doc/src/sgml/plpython.sgml,v 1.8 2002/01/07 02:29:13 petere Exp $ --> +<!-- $Header: /cvsroot/pgsql/doc/src/sgml/plpython.sgml,v 1.9 2002/03/06 19:05:57 momjian Exp $ --> <chapter id="plpython"> <title>PL/Python - Python Procedural Language</title> @@ -150,12 +150,14 @@ def __plpython_procedure_myfunc_23456(): this module are available to you in the Python code as <literal>plpy.<replaceable>foo</replaceable></literal>. At present <literal>plpy</literal> implements the functions - <literal>plpy.error("msg")</literal>, - <literal>plpy.fatal("msg")</literal>, - <literal>plpy.debug("msg")</literal>, and - <literal>plpy.notice("msg")</literal>. They are mostly equivalent - to calling <literal>elog(<replaceable>LEVEL</>, "msg")</literal>, - where <replaceable>LEVEL</> is DEBUG, ERROR, FATAL or NOTICE. + <literal>plpy.debug("msg")</literal>, + <literal>plpy.log("msg")</literal>, + <literal>plpy.info("msg")</literal>, + <literal>plpy.notice("msg")</literal>, + <literal>plpy.warning("msg")</literal>, + <literal>plpy.error("msg")</literal>, and + <literal>plpy.fatal("msg")</literal>. They are mostly equivalent + to calling <literal>elog(<replaceable>LEVEL</>, "msg")</literal>. <function>plpy.error</function> and <function>plpy.fatal</function> actually raise a Python exception which, if uncaught, causes the PL/Python module to call <literal>elog(ERROR, msg)</literal> when |