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

34.15. 環境変数 #

<title>Environment Variables</title>

The following environment variables can be used to select default connection parameter values, which will be used by <xref linkend="libpq-PQconnectdb"/>, <xref linkend="libpq-PQsetdbLogin"/> and <xref linkend="libpq-PQsetdb"/> if no value is directly specified by the calling code. These are useful to avoid hard-coding database connection information into simple client applications, for example. 以下の環境変数を使用して、呼び出し側のプログラムで直接値を指定しなかった場合の接続パラメータのデフォルト値を選ぶことができます。 この値は、PQconnectdbPQsetdbLoginおよびPQsetdbで使用されます。 例えば、簡単なクライアントアプリケーションでは、データベース接続情報を直接プログラムに記述しない方が便利です。

The following environment variables can be used to specify default behavior for each <productname>PostgreSQL</productname> session. (See also the <xref linkend="sql-alterrole"/> and <xref linkend="sql-alterdatabase"/> commands for ways to set default behavior on a per-user or per-database basis.) 以下の環境変数を使用して、PostgreSQLセッション毎のデフォルト動作を指定することができます。 (また、ユーザ毎、もしくは、データベース毎を単位としたデフォルト動作の設定方法についてはALTER ROLEおよびALTER DATABASEコマンドを参照してください。)

Refer to the <acronym>SQL</acronym> command <xref linkend="sql-set"/> for information on correct values for these environment variables. これらの環境変数の正確な値については、SET SQLコマンドを参照してください。

The following environment variables determine internal behavior of <application>libpq</application>; they override compiled-in defaults. 以下の環境変数は、libpqの内部動作を決定します。 これらはコンパイル時のデフォルトを上書きします。