Skip site navigation (1) Skip section navigation (2)

Re: pg_hba.conf

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "C(dot) Bensend" <benny(at)bennyvision(dot)com>
Cc: mike(at)thegodshalls(dot)com, lsanchez(at)ameritrade(dot)com,pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_hba.conf
Date: 2004-05-27 13:35:06
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
"C. Bensend" <benny(at)bennyvision(dot)com> writes:
>> I had setup my pg_hba.conf originally like this:
>> host   all     all   trust
>> I was under the impression that the .0 was supposed to be equivalent to
>> a wildcard entry so that any connection from 10.15 would be able to
>> connect.  This was not so.  By changing my pg_hba.conf to this:

> Yes, when your subnet mask is set for a /24, that's correct.

To expand a bit: the correct way of letting in a /16 would be

host   all     all   trust

In recent PG releases (7.4.*, not sure about 7.3) you could also write

host   all     all   trust

			regards, tom lane

In response to


pgsql-admin by date

Next:From: LSanchezDate: 2004-05-27 13:37:44
Subject: Re: pg_hba.conf
Previous:From: Laurens WagemakersDate: 2004-05-27 05:31:59

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group