|
1 |
| -<!-- $Header: /cvsroot/pgsql/doc/src/sgml/plpython.sgml,v 1.8 2002/01/07 02:29:13 petere Exp $ --> |
| 1 | +<!-- $Header: /cvsroot/pgsql/doc/src/sgml/plpython.sgml,v 1.9 2002/03/06 19:05:57 momjian Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="plpython">
|
4 | 4 | <title>PL/Python - Python Procedural Language</title>
|
@@ -150,12 +150,14 @@ def __plpython_procedure_myfunc_23456():
|
150 | 150 | this module are available to you in the Python code as
|
151 | 151 | <literal>plpy.<replaceable>foo</replaceable></literal>. At present
|
152 | 152 | <literal>plpy</literal> implements the functions
|
153 |
| - <literal>plpy.error("msg")</literal>, |
154 |
| - <literal>plpy.fatal("msg")</literal>, |
155 |
| - <literal>plpy.debug("msg")</literal>, and |
156 |
| - <literal>plpy.notice("msg")</literal>. They are mostly equivalent |
157 |
| - to calling <literal>elog(<replaceable>LEVEL</>, "msg")</literal>, |
158 |
| - where <replaceable>LEVEL</> is DEBUG, ERROR, FATAL or NOTICE. |
| 153 | + <literal>plpy.debug("msg")</literal>, |
| 154 | + <literal>plpy.log("msg")</literal>, |
| 155 | + <literal>plpy.info("msg")</literal>, |
| 156 | + <literal>plpy.notice("msg")</literal>, |
| 157 | + <literal>plpy.warning("msg")</literal>, |
| 158 | + <literal>plpy.error("msg")</literal>, and |
| 159 | + <literal>plpy.fatal("msg")</literal>. They are mostly equivalent |
| 160 | + to calling <literal>elog(<replaceable>LEVEL</>, "msg")</literal>. |
159 | 161 | <function>plpy.error</function> and <function>plpy.fatal</function>
|
160 | 162 | actually raise a Python exception which, if uncaught, causes the
|
161 | 163 | PL/Python module to call <literal>elog(ERROR, msg)</literal> when
|
|
0 commit comments