summaryrefslogtreecommitdiff
path: root/src/pl/plpython/expected/plpython_test.out
diff options
context:
space:
mode:
Diffstat (limited to 'src/pl/plpython/expected/plpython_test.out')
-rw-r--r--src/pl/plpython/expected/plpython_test.out24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/pl/plpython/expected/plpython_test.out b/src/pl/plpython/expected/plpython_test.out
index 5c12a73226..5cce4e290f 100644
--- a/src/pl/plpython/expected/plpython_test.out
+++ b/src/pl/plpython/expected/plpython_test.out
@@ -26,3 +26,27 @@ select argument_test_one(users, fname, lname) from users where lname = 'doe' ord
willem doe => {fname: willem, lname: doe, userid: 3, username: w_doe}
(3 rows)
+CREATE FUNCTION elog_test() RETURNS void
+AS $$
+plpy.debug('debug')
+plpy.log('log')
+plpy.info('info')
+plpy.info(37)
+plpy.info('info', 37, [1, 2, 3])
+plpy.notice('notice')
+plpy.warning('warning')
+plpy.error('error')
+$$ LANGUAGE plpythonu;
+SELECT elog_test();
+INFO: ('info',)
+CONTEXT: PL/Python function "elog_test"
+INFO: (37,)
+CONTEXT: PL/Python function "elog_test"
+INFO: ('info', 37, [1, 2, 3])
+CONTEXT: PL/Python function "elog_test"
+NOTICE: ('notice',)
+CONTEXT: PL/Python function "elog_test"
+WARNING: ('warning',)
+CONTEXT: PL/Python function "elog_test"
+ERROR: ('error',)
+CONTEXT: PL/Python function "elog_test"