22-- the trigger handler once. the errors and subsequent core dump were
33-- interesting.
44SELECT invalid_type_uncaught('rick');
5- WARNING:plpython : in function invalid_type_uncaught:
6- DETAIL: <class 'plpy.SPIError'>:Unknown error in PLy_spi_prepare
5+ WARNING:PL/Python : inPL/Python function" invalid_type_uncaught"
6+ DETAIL: <class 'plpy.SPIError'>:unrecognized error in PLy_spi_prepare
77ERROR: type "test" does not exist
88SELECT invalid_type_caught('rick');
9- WARNING:plpython : in function invalid_type_caught:
10- DETAIL: <class 'plpy.SPIError'>:Unknown error in PLy_spi_prepare
9+ WARNING:PL/Python : inPL/Python function" invalid_type_caught"
10+ DETAIL: <class 'plpy.SPIError'>:unrecognized error in PLy_spi_prepare
1111ERROR: type "test" does not exist
1212SELECT invalid_type_reraised('rick');
13- WARNING:plpython : in function invalid_type_reraised:
14- DETAIL: <class 'plpy.SPIError'>:Unknown error in PLy_spi_prepare
13+ WARNING:PL/Python : inPL/Python function" invalid_type_reraised"
14+ DETAIL: <class 'plpy.SPIError'>:unrecognized error in PLy_spi_prepare
1515ERROR: type "test" does not exist
1616SELECT valid_type('rick');
1717 valid_type
@@ -23,16 +23,16 @@ SELECT valid_type('rick');
2323-- Test Unicode error handling.
2424--
2525SELECT unicode_return_error();
26- ERROR:plpython: function "unicode_return_error"could not create return value
26+ ERROR:PL/Python: could not create string representation of Python object in PL/Python function "unicode_return_error"while creating return value
2727DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128)
2828INSERT INTO unicode_test (testvalue) VALUES ('test');
29- ERROR:plpython: function "unicode_trigger_error"could not modify tuple
29+ ERROR:PL/Python: could not compute string representation of Python object in PL/Python function "unicode_trigger_error"while modifying trigger row
3030DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128)
3131SELECT unicode_plan_error1();
32- WARNING:plpython : in function unicode_plan_error1:
33- DETAIL: <class 'plpy.Error'>:Unknown error in PLy_spi_execute_plan
34- ERROR:plpython: function "unicode_plan_error1" could not execute plan
32+ WARNING:PL/Python : inPL/Python function" unicode_plan_error1"
33+ DETAIL: <class 'plpy.Error'>:unrecognized error in PLy_spi_execute_plan
34+ ERROR:PL/Python: PL/Python function "unicode_plan_error1" could not execute plan
3535DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128)
3636SELECT unicode_plan_error2();
37- ERROR:plpython: function "unicode_plan_error2" could not execute plan
37+ ERROR:PL/Python: PL/Python function "unicode_plan_error2" could not execute plan
3838DETAIL: <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\x80' in position 0: ordinal not in range(128)