|
7808 | 7808 | <entry>groups of database users</entry>
|
7809 | 7809 | </row>
|
7810 | 7810 |
|
| 7811 | + <row> |
| 7812 | + <entry><link linkend="view-pg-hba-file-rules"><structname>pg_hba_file_rules</structname></link></entry> |
| 7813 | + <entry>summary of client authentication configuration file contents</entry> |
| 7814 | + </row> |
| 7815 | + |
7811 | 7816 | <row>
|
7812 | 7817 | <entry><link linkend="view-pg-indexes"><structname>pg_indexes</structname></link></entry>
|
7813 | 7818 | <entry>indexes</entry>
|
|
8408 | 8413 |
|
8409 | 8414 | </sect1>
|
8410 | 8415 |
|
| 8416 | + <sect1 id="view-pg-hba-file-rules"> |
| 8417 | + <title><structname>pg_hba_file_rules</structname></title> |
| 8418 | + |
| 8419 | + <indexterm zone="view-pg-hba-file-rules"> |
| 8420 | + <primary>pg_hba_file_rules</primary> |
| 8421 | + </indexterm> |
| 8422 | + |
| 8423 | + <para> |
| 8424 | + The view <structname>pg_hba_file_rules</structname> provides a summary of |
| 8425 | + the contents of the client authentication configuration |
| 8426 | + file, <filename>pg_hba.conf</>. A row appears in this view for each |
| 8427 | + non-empty, non-comment line in the file, with annotations indicating |
| 8428 | + whether the rule could be applied successfully. |
| 8429 | + </para> |
| 8430 | + |
| 8431 | + <para> |
| 8432 | + This view can be helpful for checking whether planned changes in the |
| 8433 | + authentication configuration file will work, or for diagnosing a previous |
| 8434 | + failure. Note that this view reports on the <emphasis>current</> contents |
| 8435 | + of the file, not on what was last loaded by the server. |
| 8436 | + </para> |
| 8437 | + |
| 8438 | + <para> |
| 8439 | + By default, the <structname>pg_hba_file_rules</structname> view can be read |
| 8440 | + only by superusers. |
| 8441 | + </para> |
| 8442 | + |
| 8443 | + <table> |
| 8444 | + <title><structname>pg_hba_file_rules</> Columns</title> |
| 8445 | + |
| 8446 | + <tgroup cols="3"> |
| 8447 | + <thead> |
| 8448 | + <row> |
| 8449 | + <entry>Name</entry> |
| 8450 | + <entry>Type</entry> |
| 8451 | + <entry>Description</entry> |
| 8452 | + </row> |
| 8453 | + </thead> |
| 8454 | + <tbody> |
| 8455 | + <row> |
| 8456 | + <entry><structfield>line_number</structfield></entry> |
| 8457 | + <entry><structfield>integer</structfield></entry> |
| 8458 | + <entry> |
| 8459 | + Line number of this rule in <filename>pg_hba.conf</> |
| 8460 | + </entry> |
| 8461 | + </row> |
| 8462 | + <row> |
| 8463 | + <entry><structfield>type</structfield></entry> |
| 8464 | + <entry><structfield>text</structfield></entry> |
| 8465 | + <entry>Type of connection</entry> |
| 8466 | + </row> |
| 8467 | + <row> |
| 8468 | + <entry><structfield>database</structfield></entry> |
| 8469 | + <entry><structfield>text[]</structfield></entry> |
| 8470 | + <entry>List of database name(s) to which this rule applies</entry> |
| 8471 | + </row> |
| 8472 | + <row> |
| 8473 | + <entry><structfield>user_name</structfield></entry> |
| 8474 | + <entry><structfield>text[]</structfield></entry> |
| 8475 | + <entry>List of user and group name(s) to which this rule applies</entry> |
| 8476 | + </row> |
| 8477 | + <row> |
| 8478 | + <entry><structfield>address</structfield></entry> |
| 8479 | + <entry><structfield>text</structfield></entry> |
| 8480 | + <entry> |
| 8481 | + Host name or IP address, or one |
| 8482 | + of <literal>all</literal>, <literal>samehost</literal>, |
| 8483 | + or <literal>samenet</literal>, or null for local connections |
| 8484 | + </entry> |
| 8485 | + </row> |
| 8486 | + <row> |
| 8487 | + <entry><structfield>netmask</structfield></entry> |
| 8488 | + <entry><structfield>text</structfield></entry> |
| 8489 | + <entry>IP address mask, or null if not applicable</entry> |
| 8490 | + </row> |
| 8491 | + <row> |
| 8492 | + <entry><structfield>auth_method</structfield></entry> |
| 8493 | + <entry><type>text</type></entry> |
| 8494 | + <entry>Authentication method</entry> |
| 8495 | + </row> |
| 8496 | + <row> |
| 8497 | + <entry><structfield>options</structfield></entry> |
| 8498 | + <entry><type>text[]</type></entry> |
| 8499 | + <entry>Options specified for authentication method, if any</entry> |
| 8500 | + </row> |
| 8501 | + <row> |
| 8502 | + <entry><structfield>error</structfield></entry> |
| 8503 | + <entry><structfield>text</structfield></entry> |
| 8504 | + <entry> |
| 8505 | + If not null, an error message indicating why this |
| 8506 | + line could not be processed |
| 8507 | + </entry> |
| 8508 | + </row> |
| 8509 | + </tbody> |
| 8510 | + </tgroup> |
| 8511 | + </table> |
| 8512 | + |
| 8513 | + <para> |
| 8514 | + Usually, a row reflecting an incorrect entry will have values for only |
| 8515 | + the <structfield>line_number</> and <structfield>error</> fields. |
| 8516 | + </para> |
| 8517 | + |
| 8518 | + <para> |
| 8519 | + See <xref linkend="client-authentication"> for more information about |
| 8520 | + client authentication configuration. |
| 8521 | + </para> |
| 8522 | + </sect1> |
| 8523 | + |
8411 | 8524 | <sect1 id="view-pg-indexes">
|
8412 | 8525 | <title><structname>pg_indexes</structname></title>
|
8413 | 8526 |
|
|
0 commit comments