PostgreSQL 8.4.22 Documentation | ||||
---|---|---|---|---|
Prev | Fast Backward | Fast Forward | Next |
ThePL/Python procedural language allowsPostgreSQL functions to be written in thePython language.
To install PL/Python in a particular database, usecreatelang plpythonudbname.
Tip: If a language is installed intotemplate1, all subsequently created databases will have the language installed automatically.
As ofPostgreSQL 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 toplpythonu. The trusted variantplpython might become available again in future, if a new secure execution mechanism is developed in Python.
Note: Users of source packages must specially enable the build of PL/Python during the installation process. (Refer to the installation instructions for more information.) Users of binary packages might find PL/Python in a separate subpackage.