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

54.9. pg_hba_file_rules #

The view <structname>pg_hba_file_rules</structname> provides a summary of the contents of the client authentication configuration file, <link linkend="auth-pg-hba-conf"><filename>pg_hba.conf</filename></link>. A row appears in this view for each non-empty, non-comment line in the file, with annotations indicating whether the rule could be applied successfully. pg_hba_file_rulesビューはクライアント認証の設定ファイルpg_hba.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_hba_file_rules</structname> view can be read only by superusers. デフォルトでは、スーパーユーザのみがpg_hba_file_rulesビューを読み取ることができます。

表54.9 pg_hba_file_rulesの列

<title><structname>pg_hba_file_rules</structname> Columns</title>

Column Type 列 型

Description 説明

rule_number int4

Number of this rule, if valid, otherwise <literal>NULL</literal>. This indicates the order in which each rule is considered until a match is found during authentication. 有効な場合はこのルールの番号。そうでない場合はNULL。 これは、認証中に一致が見つかるまで各ルールが検討される順序を示します。

file_name text

Name of the file containing this rule このルールを含むファイルの名前

line_number int4

Line number of this rule in <literal>file_name</literal> file_name内のこのルールの行番号

type text

Type of connection 接続の種別

database text[]

List of database name(s) to which this rule applies このルールが適用されるデータベース名のリスト

user_name text[]

List of user and group name(s) to which this rule applies このルールが適用されるユーザ名とグループ名のリスト

address text

Host name or IP address, or one of <literal>all</literal>, <literal>samehost</literal>, or <literal>samenet</literal>, or null for local connections ホスト名、IPアドレス、あるいはallsamehostsamenetのいずれか。ローカル接続の場合はNULL。

netmask text

IP address mask, or null if not applicable IPアドレスマスク。当てはまらない場合はNULL

auth_method text

Authentication method 認証方法

options text[]

Options specified for authentication method, if any 認証方法について指定されたオプション(あれば)

error text

If not null, 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章を参照してください。