1
0
mirror of https://github.com/postgres/postgres.git synced 2026-01-13 12:22:55 +03:00

Remove read_file/write_file tests. These were originally intended to

*fail*, to test that plpython didn't allow untrusted operations.
When we changed plpython to plpythonu because python didn't actually have
a secure sandbox mode, someone (probably me :-() misinterpreted the tests
as checking whether Python's file I/O works.  Which is a stupid thing for
us to be testing.  Remove it so we don't clutter the filesystem with
random temporary files.
This commit is contained in:
Tom Lane
2005-06-20 21:14:01 +00:00
parent 9d7c005243
commit 59ee9448a8
4 changed files with 0 additions and 33 deletions

View File

@@ -19,16 +19,3 @@ SELECT valid_type('rick');
(1 row)
-- Security sandbox tests
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!
(1 row)