147) The frontend/backend authentication process is handled by PQconnectdb without any further intervention. The authentication method is now determined entirely by the DBA (see pga_hba.conf(5)). The following routines no longer have any effect and should not be used.
フロントエンド−バックエンド間の認証は PQconnectdb だけが処理し,それ以外に介在するものはありません. 現バージョンでは認証方法をすべてデータベース管理者が決定します. (pg_hba.conf(5) の man ページ参照) なお,以下のルーチンはもはや何ら効果を持ちませんし,また使うべきでもありません.
fe_getauthname 148) Returns a pointer to static space containing whatever name the user has authenticated. Use of this routine in place of calls to getenv(3) or getpwuid(3) by applications is highly recommended, as it is entirely possible that the authenticated user name is not the same as value of the USER environment variable or the user's entry in /etc/passwd. ユーザがどのような名前で認証を受けたかを保持する, スタティックな領域へのポインタを返します. getenv(3) や getpwuid(3) を呼び出すかわりに, このルーチンを使うことを強く推奨します. これは認証を受けたユーザ名が,環境変数 USER の値や, /etc/passwd にあるエントリと一致しない場合があるからです.
char *fe_getauthname(char* errorMessage)
fe_setauthsvc 149) Specifies that libpq should use authentication service name rather than its compiled-in default. This value is typically taken from a command-line switch. 認証サービス名として,libpq のコンパイル時に 組み込まれたデフォルト値以外のものを使うよう指定します. この値はコマンドラインスイッチとして与えるのが典型的です.
void fe_setauthsvc(char *name, char* errorMessage)150) Any error messages from the authentication attempts are returned in the errorMessage argument. 認証を試みた際のエラーメッセージは,引数 errorMessage を経由して返されます.