↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / 过程语言

plpython2u

PL/Python2U untrusted procedural language

当前阅读 PG 14·选择有来源记录的版本

此版本暂无所选语言的定义,以下显示原始英文内容。

Kind
Bundled procedural-language variant
Family
PL/Python
Trusted
f
Handler
plpython2_call_handler
Inline handler
plpython2_inline_handler
Validator
plpython2_validator
Library
$libdir/plpython2
Default version
1.0
Module pathname
$libdir/plpython2
Comment
PL/Python2U untrusted procedural language
aliases
未知
manual path
/docs/14/plpython.html
signature
未知

版本定义 PG 14

Chapter 46. PL/Python — Python Procedural Language

The PL/Python procedural language allows PostgreSQL functions and procedures to be written in the Python language.

To install PL/Python in a particular database, use CREATE EXTENSION plpythonu (but see also Section 46.1).

Tip

If a language is installed into template1, all subsequently created databases will have the language installed automatically.

PL/Python is only available as an “untrusted” language, meaning it does not offer any way of restricting what users can do in it and is therefore named plpythonu. A trusted variant plpython might become available in the future if a 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.

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.

比较版本

完整来源事实

attributes

{"comment":"PL/Python2U untrusted procedural language","default_version":"1.0","family":"PL/Python","handler":"plpython2_call_handler","inline_handler":"plpython2_inline_handler","kind":"Bundled procedural-language variant","library":"$libdir/plpython2","module_pathname":"$libdir/plpython2","trusted":"f","validator":"plpython2_validator"}

source files

{"src/pl/plpython/plpython2u--1.0.sql":"2e7dcdbf0cb5eddc11ffce175e5e0c89e27076ac26ab2764ca5a90180db99a70","src/pl/plpython/plpython2u.control":"c09792a1d7b0e512559e1c4c72b0c3e1ab0bf37b85dd5c8ebec16e0c3b333209"}

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 14 · a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897

正文语言: en · a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897