Re: CIDR in pg_hba.conf

Поиск
Список
Период
Сортировка
Искать
От
scott.marlowe
Тема
Re: CIDR in pg_hba.conf
Дата
в 13:55:27
Msg-id
Pine.LNX.4.33.0305071142590.9229-100000@css120.ihs.com
Ответ на
Re: CIDR in pg_hba.conf (D'Arcy J.M. Cain)
Список
Дерево обсуждения
Re: CIDR in pg_hba.conf "Christopher Kings-Lynne" <chriskl@familyhealth.com.au>
Re: CIDR in pg_hba.conf Robert Treat <xzilla@users.sourceforge.net>
On Wed, 7 May 2003, D'Arcy J.M. Cain wrote:

> On Wednesday 07 May 2003 09:50, Andrew Dunstan wrote:
> > So in hba.c, if we found a / in the IP address, we wouldn't go looking for
> > a separate netmask field.
> 
> Is anyone else uncomfortable with variable number of fields?  I know there is 
> prior art but it still spooks me a little.  How about a space after the 
> address and before the slash?  That way the netmask is in the same field as 
> always (as are the following fields) and it's just an alternative syntax.

If that's the case, then just drop the / from the address and make the 
mask field varialble, so if it has .s in it it's a netmask, otherwise it's 
a number like a CIDR's second half.


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: Protocol V3 question
От: Andrew Dunstan
Дата:
Сообщение: Re: CIDR in pg_hba.conf
FAQ