]> granicus.if.org Git - postgresql/blob - src/pl/plpython/sql/plpython_error.sql
Convert the existing regression test scripts for the various optional
[postgresql] / src / pl / plpython / sql / plpython_error.sql
1
2 -- test error handling, i forgot to restore Warn_restart in
3 -- the trigger handler once. the errors and subsequent core dump were
4 -- interesting.
5
6 SELECT invalid_type_uncaught('rick');
7 SELECT invalid_type_caught('rick');
8 SELECT invalid_type_reraised('rick');
9 SELECT valid_type('rick');
10
11 -- Security sandbox tests
12 SELECT write_file('/tmp/plpython','Only trusted users should be able to do this!');
13 SELECT read_file('/tmp/plpython');