]> granicus.if.org Git - postgresql/blob - src/pl/plpython/plpython_error.sql
0cde4df9967f84e297f504f06544858aa9c2bc41
[postgresql] / src / pl / plpython / 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 read_file('/etc/passwd');
13 SELECT write_file('/tmp/plpython','This is very bad');
14 SELECT getpid();
15 SELECT uname();
16 SELECT sys_exit();
17 SELECT sys_argv();