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

54.10. pg_ident_file_mappings #

The view <structname>pg_ident_file_mappings</structname> provides a summary of the contents of the client user name mapping configuration file, <link linkend="auth-username-maps"><filename>pg_ident.conf</filename></link>. A row appears in this view for each non-empty, non-comment line in the file, with annotations indicating whether the map could be applied successfully. pg_ident_file_mappingsビューはクライアントユーザ名マッピング設定ファイルpg_ident.confの内容の要約を提供します。 ファイル内の空でない、コメントでもない各行について、このビュー内に行が1つあり、マップが正しく適用できたかどうかを示す注記が入ります。

This view can be helpful for checking whether planned changes in the authentication configuration file will work, or for diagnosing a previous failure. Note that this view reports on the <emphasis>current</emphasis> contents of the file, not on what was last loaded by the server. このビューは、認証の設定ファイルについて計画している変更が動作するかどうかを確認する、あるいは以前の失敗について分析するのに役立つでしょう。 このビューはサーバが最後に読み込んだものではなく、ファイルの現在の内容について報告することに注意してください。

By default, the <structname>pg_ident_file_mappings</structname> view can be read only by superusers. デフォルトで、pg_ident_file_mappingsビューはスーパーユーザのみが参照可能です。

表54.10 pg_ident_file_mappings Columns

Column Type 列 型

Description 説明

map_number int4

Number of this map, in priority order, if valid, otherwise <literal>NULL</literal> 有効な場合は、優先順位の中でこのマップの番号。そうでない場合はNULL

file_name text

Name of the file containing this map このマップを含むファイルの名前

line_number int4

Line number of this map in <literal>file_name</literal> file_name内のこのマップの行番号

map_name text

Name of the map マップの名前

sys_name text

Detected user name of the client 検出されたクライアントのユーザー名

pg_username text

Requested PostgreSQL user name 要求されたPostgreSQLユーザ名

error text

If not <literal>NULL</literal>, an error message indicating why this line could not be processed NULLでないなら、この行がなぜ処理できなかったかを示すエラーメッセージ


Usually, a row reflecting an incorrect entry will have values for only the <structfield>line_number</structfield> and <structfield>error</structfield> fields. 不正なエントリに対応する行は、通常はline_numberフィールドとerrorフィールドにのみ値が入ります。

See <xref linkend="client-authentication"/> for more information about client authentication configuration. クライアント認証設定の詳細については第21章を参照してください。