Re: CIDR in pg_hba.conf

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>, "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL Hackers Mailing List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CIDR in pg_hba.conf
Date: 2003-05-07 18:24:56
Message-ID: 29020000.1052331896@lerlaptop.iadfw.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

--On Wednesday, May 07, 2003 11:44:12 -0600 "scott.marlowe"
<scott(dot)marlowe(at)ihs(dot)com> wrote:

> 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.
I'd prefer to have the /'s. It makes it easier to generate the file
magically (perhaps from PG itself).

LER

>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Þórhallur Hálfdánarson 2003-05-07 18:29:04 Re: CIDR in pg_hba.conf
Previous Message Andrew Dunstan 2003-05-07 18:05:30 Re: CIDR in pg_hba.conf