]> begriffs open source - ai-pg/blob - full-docs/txt/plpython-envar.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / plpython-envar.txt
1
2 44.11. Environment Variables #
3
4    Some of the environment variables that are accepted by the Python
5    interpreter can also be used to affect PL/Python behavior. They would
6    need to be set in the environment of the main PostgreSQL server
7    process, for example in a start script. The available environment
8    variables depend on the version of Python; see the Python documentation
9    for details. At the time of this writing, the following environment
10    variables have an affect on PL/Python, assuming an adequate Python
11    version:
12      * PYTHONHOME
13      * PYTHONPATH
14      * PYTHONY2K
15      * PYTHONOPTIMIZE
16      * PYTHONDEBUG
17      * PYTHONVERBOSE
18      * PYTHONCASEOK
19      * PYTHONDONTWRITEBYTECODE
20      * PYTHONIOENCODING
21      * PYTHONUSERBASE
22      * PYTHONHASHSEED
23
24    (It appears to be a Python implementation detail beyond the control of
25    PL/Python that some of the environment variables listed on the python
26    man page are only effective in a command-line interpreter and not an
27    embedded Python interpreter.)