152) The following environment variables can be used to select default connection parameter values, which will be used by PQconnectdb or PQsetdbLogin if no value is directly specified by the calling code. These are useful to avoid hard-coding database names into simple application programs.
以下の環境変数は,プログラムが PQconnection または PQsetdbLogin の接続 パラメータの値を明確に指定しなかった場合,接続パラメータのデフォルト 値として使われます. 簡単なアプリケーションプログラムでシステム既定値以外のデータベース名を 選ぶのに便利です.
153) PGHOST sets the default server name. If a non-zero-length string is specified, TCP/IP communication is used. Without a host name, libpq will connect using a local Unix domain socket.
PGHOST はデフォルトサーバ名を指定します. 長さが 0 でない文字列が指定された場合は TCP/IP で接続します. ホスト名がない場合,libpq はローカルの UNIX ドメインソケットを使って接続します.
154) PGPORT sets the default port or local Unix domain socket file extension for communicating with the Postgres backend.
PGPORT は Postgres バックエンドとの 接続ポート,またはローカルの UNIX ドメインソケットファイルの拡張子を指定します.
155) PGDATABASE sets the default Postgres database name.
PGDATABASE はデフォルトの Postgres データベース名を指定します.
156) PGUSER sets the username used to connect to the database and for authentication.
PGUSER はデータベースの接続と認証に使われるユーザ名を指定します.
157) PGPASSWORD sets the password used if the backend demands password authentication.
PGPASSWORD はバックエンドがパスワード認証を要求した場合に 渡されるパスワードを指定します.
158) PGREALM sets the Kerberos realm to use with Postgres, if it is different from the local realm. If PGREALM is set, Postgres applications will attempt authentication with servers for this realm and use separate ticket files to avoid conflicts with local ticket files. This environment variable is only used if Kerberos authentication is selected by the backend.
PGREALM は Postgres と一緒に使う Kerberos の realm がローカルのものと異なる場合に,その realm を指定します. PGREALM が設定されると, Postgres アプリケーションは指定された realm のサーバ,および独立したチケットファイルを使い, ローカルのチケットファイルと競合しないようにします. この環境変数は Kerberos による認証をバックエンドが選択した場合にのみ使われます.
159) PGOPTIONS sets additional runtime options for the Postgres backend.
PGOPTIONS は Postgres バックエンドに対して追加するランタイムオプションを指定します.
160) PGTTY sets the file or tty on which debugging messages from the backend server are displayed.
PGTTY はバックエンドサーバのデバッグメッセージを出力する ファイル,あるいは tty を指定します.
161) The following environment variables can be used to specify user-level default behavior for every Postgres session:
以下の環境変数は個々の Postgres とのセッションにおける,ユーザレベルの デフォルト動作を指定するのに使います.
162) PGDATESTYLE sets the default style of date/time representation.
PGDATESTYLE はデフォルトの日付表示スタイルを指定します.
163) PGTZ sets the default time zone.
PGTZ はデフォルトのタイムゾーンを指定します.
164) The following environment variables can be used to specify default internal behavior for every Postgres session:
以下の環境変数は個々の Postgres とのセッションにおける, デフォルトの内部動作を指定するのに使います.
165) PGGEQO sets the default mode for the genetic optimizer.
PGGEQO は遺伝的アルゴリズムによるオプティマイザの 動作モードを指定します.
166) PGRPLANS sets the default mode to allow or disable right-sided plans in the optimizer.
PGRPLANS はオプティマイザにおける右優先 プランニングをデフォルトで使用するかどうかを指定します.
167) PGCOSTHEAP sets the default cost for heap searches for the optimizer.
PGCOSTHEAP はオプティマイザに対して ヒープサーチのデフォルトコストを指定します.
168) PGCOSTINDEX sets the default cost for indexed searches for the optimizer.
PGCOSTINDEX はオプティマイザに対して インデックスサーチのデフォルトコストを指定します.
169) Refer to the SET SQL command for information on correct values for these environment variables.
これらの環境変数に対する正しい設定値に関しては SQL の SET コマンドを参照してください.