2001-05-09 15:54:38 -04:00
|
|
|
SELECT invalid_type_uncaught('rick');
|
2003-01-31 17:25:14 -05:00
|
|
|
WARNING: plpython: in function invalid_type_uncaught:
|
|
|
|
|
plpy.SPIError: Unknown error in PLy_spi_prepare.
|
|
|
|
|
ERROR: Type "test" does not exist
|
2001-05-09 15:54:38 -04:00
|
|
|
SELECT invalid_type_caught('rick');
|
2003-01-31 17:25:14 -05:00
|
|
|
WARNING: plpython: in function invalid_type_caught:
|
|
|
|
|
plpy.SPIError: Unknown error in PLy_spi_prepare.
|
|
|
|
|
ERROR: Type "test" does not exist
|
2001-05-09 15:54:38 -04:00
|
|
|
SELECT invalid_type_reraised('rick');
|
2003-01-31 17:25:14 -05:00
|
|
|
WARNING: plpython: in function invalid_type_reraised:
|
|
|
|
|
plpy.SPIError: Unknown error in PLy_spi_prepare.
|
|
|
|
|
ERROR: Type "test" does not exist
|
2001-05-09 15:54:38 -04:00
|
|
|
SELECT valid_type('rick');
|
|
|
|
|
valid_type
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
(1 row)
|
|
|
|
|
|
2003-06-30 14:31:42 -04:00
|
|
|
SELECT write_file('/tmp/plpython','Only trusted users should be able to do this!');
|
|
|
|
|
write_file
|
|
|
|
|
------------------------------
|
|
|
|
|
Wrote to file: /tmp/plpython
|
|
|
|
|
(1 row)
|
|
|
|
|
|
|
|
|
|
SELECT read_file('/tmp/plpython');
|
|
|
|
|
read_file
|
|
|
|
|
-----------------------------------------------
|
|
|
|
|
Only trusted users should be able to do this!
|
2001-11-16 13:04:31 -05:00
|
|
|
(1 row)
|
|
|
|
|
|