From 611522444843d06bc9aa14496b2de4ba5791e64c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 30 Jun 2003 18:31:42 +0000 Subject: Rename plpython to plpythonu, and update documentation to reflect its now-untrusted status. --- doc/src/sgml/plpython.sgml | 29 +++++++++++++++++++++++++---- doc/src/sgml/release.sgml | 3 ++- doc/src/sgml/xplang.sgml | 19 ++++++++++--------- 3 files changed, 37 insertions(+), 14 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/plpython.sgml b/doc/src/sgml/plpython.sgml index 6ec19c6e8ea..2de2e746b5f 100644 --- a/doc/src/sgml/plpython.sgml +++ b/doc/src/sgml/plpython.sgml @@ -1,4 +1,4 @@ - + PL/Python - Python Procedural Language @@ -14,9 +14,21 @@ To install PL/Python in a particular database, use - createlang plpython dbname. + createlang plpythonu dbname. + + + 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 therefore been renamed to plpythonu. + The trusted variant plpython may become available again in + future, if a new secure execution mechanism is developed by the Python + community. + + + If a language is installed into template1, all subsequently @@ -41,7 +53,7 @@ CREATE FUNCTION myfunc(text) RETURNS text AS 'return args[0]' - LANGUAGE plpython; + LANGUAGE plpythonu; gets transformed into @@ -78,6 +90,8 @@ def __plpython_procedure_myfunc_23456(): available to all Python functions within a session. Use with care. + + @@ -218,11 +235,13 @@ CREATE FUNCTION usesavedplan() RETURNS trigger AS ' plan = plpy.prepare("SELECT 1") SD["plan"] = plan # rest of function -' LANGUAGE plpython; +' LANGUAGE plpythonu; + + diff --git a/doc/src/sgml/release.sgml b/doc/src/sgml/release.sgml index 188f2c8341b..a17669e73ea 100644 --- a/doc/src/sgml/release.sgml +++ b/doc/src/sgml/release.sgml @@ -1,5 +1,5 @@ @@ -24,6 +24,7 @@ CDATA means the content is "SGML-free", so you can write without worries about funny characters. --> @@ -109,13 +109,14 @@ CREATE TRUSTED PROCEDURAL LANGUAGE PL/pgSQL, - PL/Tcl, - PL/Perl, and - PL/Python are known to be trusted; - the languages PL/TclU and - PL/PerlU are designed to provide - unlimited functionality and should not be - marked trusted. + PL/Tcl, and + PL/Perl + are considered trusted; the languages + PL/TclU, + PL/PerlU, and + PL/PythonU + are designed to provide unlimited functionality and should + not be marked trusted. @@ -158,7 +159,7 @@ CREATE TRUSTED PROCEDURAL LANGUAGE plpgsql directory. If Tcl/Tk support is configured in, the handlers for PL/Tcl and PL/TclU are also built and installed in the same location. Likewise, the PL/Perl and PL/PerlU handlers are built - and installed if Perl support is configured, and PL/Python is + and installed if Perl support is configured, and PL/PythonU is installed if Python support is configured. -- cgit v1.2.3