1 DO $$ plpy.notice("This is plpythonu.") $$ LANGUAGE plpythonu;
2 NOTICE: This is plpythonu.
3 DO $$ plpy.notice("This is plpython2u.") $$ LANGUAGE plpython2u;
4 NOTICE: This is plpython2u.
5 DO $$ raise Exception("error test") $$ LANGUAGE plpythonu;
6 ERROR: Exception: error test
7 CONTEXT: Traceback (most recent call last):
8 PL/Python anonymous code block, line 1, in <module>
9 raise Exception("error test")
10 PL/Python anonymous code block