September 25, 2025: PostgreSQL 18 Released!
Unsupported versions: 7.3
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.
PostgreSQL 7.3.21 Documentation
Prev Chapter 22. PL/Python - Python Procedural Language Next

22.4. Restricted Environment

The current version of PL/Python functions as a trusted language only; access to the file system and other local resources is disabled. Specifically, PL/Python uses the Python restricted execution environment, further restricts it to prevent the use of the file open call, and allows only modules from a specific list to be imported. Presently, that list includes: array, bisect, binascii, calendar, cmath, codecs, errno, marshal, math, md5, mpz, operator, pcre, pickle, random, re, regex, sre, sha, string, StringIO, struct, time, whrandom, and zlib.


Prev Home Next
Database Access Up PostgreSQL 7.3.21 Reference Manual

AltStyle によって変換されたページ (->オリジナル) /