Clarify description of CIDR-address column of pg_hba.conf, to discourage
authorTom Lane <[email protected]>
Fri, 17 Nov 2006 23:25:17 +0000 (23:25 +0000)
committerTom Lane <[email protected]>
Fri, 17 Nov 2006 23:25:17 +0000 (23:25 +0000)
people from trying notations like '10.6/16', which is accepted but does
not mean what you probably think.  Per example from Paul Forgey.

doc/src/sgml/client-auth.sgml

index e3526953fcde62bcb4cd25d332c1ce887cc7dff4..b7e8a7b173fcfe77df6e34b2a1c05d7aca277e2a 100644 (file)
@@ -226,11 +226,12 @@ hostnossl  <replaceable>database</replaceable>  <replaceable>user</replaceable>
       </para>
 
       <para>
-       A typical <replaceable>CIDR-address</replaceable> is
+       Typical examples of a <replaceable>CIDR-address</replaceable> are
        <literal>172.20.143.89/32</literal> for a single host, or
-       <literal>172.20.143.0/24</literal> for a network.
+       <literal>172.20.143.0/24</literal> for a small network, or
+       <literal>10.6.0.0/16</literal> for a larger one.
        To specify a single host, use a CIDR mask of 32 for IPv4 or
-       128 for IPv6.
+       128 for IPv6.  In a network address, do not omit trailing zeroes.
       </para>
 
       <para>