バージョンごとのドキュメント一覧

46.11. 環境変数 #

<title>Environment Variables</title>

Some of the environment variables that are accepted by the Python interpreter can also be used to affect PL/Python behavior. They would need to be set in the environment of the main PostgreSQL server process, for example in a start script. The available environment variables depend on the version of Python; see the Python documentation for details. At the time of this writing, the following environment variables have an affect on PL/Python, assuming an adequate Python version: Pythonインタプリタにより受け付けられる環境変数の一部はまた、PL/Pythonの動作を変更するために使用することができます。 これらは例えば起動スクリプト内など主PostgreSQLサーバプロセスの環境で設定される必要があります。 利用可能な環境変数はPythonのバージョンに依存します。 詳細に付いてはPythonの文書を参照してください。 適切なバージョンのPythonであることが前提ですが、本章の執筆時点では以下の環境変数がPL/Pythonに影響を与えます。

(It appears to be a Python implementation detail beyond the control of PL/Python that some of the environment variables listed on the <command>python</command> man page are only effective in a command-line interpreter and not an embedded Python interpreter.) pythonマニュアルページに列挙された環境変数の一部はコマンドラインインタプリタでのみ影響を与え、組み込みPythonインタプリタには影響しないというPL/Pythonの制御を超えたPythonの詳細実装があるようです。)