mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 15:31:18 +02:00
1ca717f377
Kevin Jacobs and Brad McLean.
18 lines
473 B
SQL
18 lines
473 B
SQL
|
|
-- test error handling, i forgot to restore Warn_restart in
|
|
-- the trigger handler once. the errors and subsequent core dump were
|
|
-- interesting.
|
|
|
|
SELECT invalid_type_uncaught('rick');
|
|
SELECT invalid_type_caught('rick');
|
|
SELECT invalid_type_reraised('rick');
|
|
SELECT valid_type('rick');
|
|
|
|
-- Security sandbox tests
|
|
SELECT read_file('/etc/passwd');
|
|
SELECT write_file('/tmp/plpython','This is very bad');
|
|
SELECT getpid();
|
|
SELECT uname();
|
|
SELECT sys_exit();
|
|
SELECT sys_argv();
|