 </p><div class="tip"><h3 class="title">Tip</h3><p>
    To connect to a particular database, a user must not only pass the
    <code class="filename">pg_hba.conf</code> checks, but must have the
    <code class="literal">CONNECT</code> privilege for the database.  If you wish to
    restrict which users can connect to which databases, it's usually
    easier to control this by granting/revoking <code class="literal">CONNECT</code> privilege
    than to put the rules in <code class="filename">pg_hba.conf</co