From 1e24678349ba90500fe32722c92c680e811f20ea Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 29 Mar 2010 21:35:59 +0000 Subject: Add some information about what it means for PL/Python to be untrusted. Similar information already appears in the PL/Perl and PL/Tcl chapters. --- doc/src/sgml/plpython.sgml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/src/sgml/plpython.sgml b/doc/src/sgml/plpython.sgml index ab9ad2228a..8b58a95a00 100644 --- a/doc/src/sgml/plpython.sgml +++ b/doc/src/sgml/plpython.sgml @@ -1,4 +1,4 @@ - + PL/Python - Python Procedural Language @@ -27,11 +27,16 @@ As of PostgreSQL 7.4, PL/Python is only - available as an untrusted language (meaning it does not - offer any way of restricting what users can do in it). It has + available as an untrusted language, meaning it does not + offer any way of restricting what users can do in it. It has therefore been renamed to plpythonu. The trusted variant plpython might become available again in future, - if a new secure execution mechanism is developed in Python. + if a new secure execution mechanism is developed in Python. The + writer of a function in untrusted PL/Python must take care that the + function cannot be used to do anything unwanted, since it will be + able to do anything that could be done by a user logged in as the + database administrator. Only superusers can create functions in + untrusted languages such as plpythonu. -- cgit v1.2.1