Restricted Environment

PostgreSQL 7.3.4 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.4 Reference Manual