Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2e6dc53

Browse files
committed
Document which Python environment variables affect PL/Python
1 parentb0c451e commit2e6dc53

File tree

1 file changed

+61
-1
lines changed

1 file changed

+61
-1
lines changed

‎doc/src/sgml/plpython.sgml

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/plpython.sgml,v 1.51 2010/07/08 18:42:12 petere Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/plpython.sgml,v 1.52 2010/08/05 18:36:33 petere Exp $ -->
22

33
<chapter id="plpython">
44
<title>PL/Python - Python Procedural Language</title>
@@ -958,4 +958,64 @@ $$ LANGUAGE plpythonu;
958958
</para>
959959
</sect1>
960960

961+
<sect1 id="plpython-envar">
962+
<title>Environment Variables</title>
963+
964+
<para>
965+
Some of the environment variables that are accepted by the Python
966+
interpreter can also be used to affect PL/Python behavior. They
967+
would need to be set in the environment of the main PostgreSQL
968+
server process, for example in a start script. The available
969+
environment variables depend on the version of Python; see the
970+
Python documentation for details. At the time of this writing, the
971+
following environment variables have an affect on PL/Python,
972+
assuming an adequate Python version:
973+
<itemizedlist>
974+
<listitem>
975+
<para><envar>PYTHONHOME</envar></para>
976+
</listitem>
977+
978+
<listitem>
979+
<para><envar>PYTHONPATH</envar></para>
980+
</listitem>
981+
982+
<listitem>
983+
<para><envar>PYTHONY2K</envar></para>
984+
</listitem>
985+
986+
<listitem>
987+
<para><envar>PYTHONOPTIMIZE</envar></para>
988+
</listitem>
989+
990+
<listitem>
991+
<para><envar>PYTHONDEBUG</envar></para>
992+
</listitem>
993+
994+
<listitem>
995+
<para><envar>PYTHONVERBOSE</envar></para>
996+
</listitem>
997+
998+
<listitem>
999+
<para><envar>PYTHONCASEOK</envar></para>
1000+
</listitem>
1001+
1002+
<listitem>
1003+
<para><envar>PYTHONDONTWRITEBYTECODE</envar></para>
1004+
</listitem>
1005+
1006+
<listitem>
1007+
<para><envar>PYTHONIOENCODING</envar></para>
1008+
</listitem>
1009+
1010+
<listitem>
1011+
<para><envar>PYTHONUSERBASE</envar></para>
1012+
</listitem>
1013+
</itemizedlist>
1014+
1015+
(It appears to be a Python implementation detail beyond the control
1016+
of PL/Python that some of the environment variables listed on
1017+
the <command>python</command> man page are only effective in a
1018+
command-line interpreter and not an embedded Python interpreter.)
1019+
</para>
1020+
</sect1>
9611021
</chapter>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp