Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 9b6cc37ce608401d44f6535a0c7cb777 > files > 1050

postgresql11-docs-11.5-1.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>52.71. pg_hba_file_rules</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="view-pg-group.html" title="52.70. pg_group" /><link rel="next" href="view-pg-indexes.html" title="52.72. pg_indexes" /></head><body><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">52.71. <code xmlns="http://www.w3.org/1999/xhtml" class="structname">pg_hba_file_rules</code></th></tr><tr><td width="10%" align="left"><a accesskey="p" href="view-pg-group.html" title="52.70. pg_group">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="catalogs.html" title="Chapter 52. System Catalogs">Up</a></td><th width="60%" align="center">Chapter 52. System Catalogs</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 11.5 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="view-pg-indexes.html" title="52.72. pg_indexes">Next</a></td></tr></table><hr></hr></div><div class="sect1" id="VIEW-PG-HBA-FILE-RULES"><div class="titlepage"><div><div><h2 class="title" style="clear: both">52.71. <code class="structname">pg_hba_file_rules</code></h2></div></div></div><a id="id-1.10.4.73.2" class="indexterm"></a><p>
   The view <code class="structname">pg_hba_file_rules</code> provides a summary of
   the contents of the client authentication configuration
   file, <code class="filename">pg_hba.conf</code>.  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.
  </p><p>
   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 <span class="emphasis"><em>current</em></span> contents
   of the file, not on what was last loaded by the server.
  </p><p>
   By default, the <code class="structname">pg_hba_file_rules</code> view can be read
   only by superusers.
  </p><div class="table" id="id-1.10.4.73.6"><p class="title"><strong>Table 52.72. <code class="structname">pg_hba_file_rules</code> Columns</strong></p><div class="table-contents"><table class="table" summary="pg_hba_file_rules Columns" border="1"><colgroup><col /><col /><col /></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code class="structfield">line_number</code></td><td><code class="structfield">integer</code></td><td>
      Line number of this rule in <code class="filename">pg_hba.conf</code>
     </td></tr><tr><td><code class="structfield">type</code></td><td><code class="structfield">text</code></td><td>Type of connection</td></tr><tr><td><code class="structfield">database</code></td><td><code class="structfield">text[]</code></td><td>List of database name(s) to which this rule applies</td></tr><tr><td><code class="structfield">user_name</code></td><td><code class="structfield">text[]</code></td><td>List of user and group name(s) to which this rule applies</td></tr><tr><td><code class="structfield">address</code></td><td><code class="structfield">text</code></td><td>
      Host name or IP address, or one
      of <code class="literal">all</code>, <code class="literal">samehost</code>,
      or <code class="literal">samenet</code>, or null for local connections
     </td></tr><tr><td><code class="structfield">netmask</code></td><td><code class="structfield">text</code></td><td>IP address mask, or null if not applicable</td></tr><tr><td><code class="structfield">auth_method</code></td><td><code class="type">text</code></td><td>Authentication method</td></tr><tr><td><code class="structfield">options</code></td><td><code class="type">text[]</code></td><td>Options specified for authentication method, if any</td></tr><tr><td><code class="structfield">error</code></td><td><code class="structfield">text</code></td><td>
      If not null, an error message indicating why this
      line could not be processed
     </td></tr></tbody></table></div></div><br class="table-break" /><p>
   Usually, a row reflecting an incorrect entry will have values for only
   the <code class="structfield">line_number</code> and <code class="structfield">error</code> fields.
  </p><p>
   See <a class="xref" href="client-authentication.html" title="Chapter 20. Client Authentication">Chapter 20</a> for more information about
   client authentication configuration.
  </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="view-pg-group.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="catalogs.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="view-pg-indexes.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">52.70. <code class="structname">pg_group</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 52.72. <code class="structname">pg_indexes</code></td></tr></table></div></body></html>