mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-09 23:47:37 +08:00
> rexec and making it an untrusted language. Last time I looked, it didn't > look particularly difficult. I've set aside some time next week, so stay > tuned. Attached is a patch that removes all of the RExec code from plpython from the current PostgreSQL CVS. In addition, plpython needs to be changed to an untrusted language in createlang. Please let me know if there are any problems. Kevin Jacobs
14 lines
433 B
SQL
14 lines
433 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 write_file('/tmp/plpython','Only trusted users should be able to do this!');
|
|
SELECT read_file('/tmp/plpython');
|