diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-20 21:14:01 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-20 21:14:01 +0000 |
| commit | 59ee9448a86acd1de8d8eaf2cc86b1ea45f54069 (patch) | |
| tree | b2fa48d9cbc664c03262afa503f6174b1eb38915 /src/pl/plpython/sql/plpython_function.sql | |
| parent | 9d7c005243c55fef3ee359c6e2a076ff202ad7a3 (diff) | |
| download | postgresql-59ee9448a86acd1de8d8eaf2cc86b1ea45f54069.tar.gz | |
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.
Diffstat (limited to 'src/pl/plpython/sql/plpython_function.sql')
| -rw-r--r-- | src/pl/plpython/sql/plpython_function.sql | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/pl/plpython/sql/plpython_function.sql b/src/pl/plpython/sql/plpython_function.sql index c849c3e5b9..25ac388495 100644 --- a/src/pl/plpython/sql/plpython_function.sql +++ b/src/pl/plpython/sql/plpython_function.sql @@ -298,15 +298,6 @@ return seq ' LANGUAGE plpythonu; -CREATE OR REPLACE FUNCTION read_file(text) RETURNS text AS ' - return open(args[0]).read() -' LANGUAGE plpythonu; - -CREATE OR REPLACE FUNCTION write_file(text,text) RETURNS text AS ' - open(args[0],"w").write(args[1]) - return "Wrote to file: %s" % args[0] -' LANGUAGE plpythonu; - -- -- Universal Newline Support -- |
