2004-10-10 19:53:49 +02:00
|
|
|
PL/Python allows you to write functions in the Python programming language
|
2004-10-10 14:38:21 +02:00
|
|
|
that may be used in SQL queries as if they were built into Postgres.
|
2004-10-10 19:53:49 +02:00
|
|
|
The PL/Python intepreter is a full Python interpreter.
|
|
|
|
|
|
|
|
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 in Python.
|