From: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | PostgreSQL Hackers Mailing List <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: CIDR in pg_hba.conf |
Date: | 2003-05-07 18:40:00 |
Message-ID: | Pine.LNX.4.33.0305071239160.9367-100000@css120.ihs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I too favor variable numbers of fields. My only point was that if it was
gonna be done as two fields to leave out the / as it is noise at that
point.
On Wed, 7 May 2003, Andrew Dunstan wrote:
> I would far rather have standard CIDR notation - inventing a new one for Pg
> doesn't make sense to me.
>
> I do not at all understand the objection to a variable number of fields. In
> fact, we already have them (there's an optional authentication_option on the
> end).
>
> If you don't like this scheme, you can avoid use of CIDR notation (or
> hostnames) and the pg_hba.conf will work exactly as before.
>
> andrew
>
> ----- Original Message -----
> From: "scott.marlowe" <scott(dot)marlowe(at)ihs(dot)com>
> To: "D'Arcy J.M. Cain" <darcy(at)druid(dot)net>
> Cc: "Andrew Dunstan" <andrew(at)dunslane(dot)net>; "PostgreSQL Hackers Mailing
> List" <pgsql-hackers(at)postgresql(dot)org>
> Sent: Wednesday, May 07, 2003 1:44 PM
> Subject: Re: [HACKERS] CIDR in pg_hba.conf
>
>
> > 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.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2003-05-07 18:42:43 | Re: [GENERAL] Installin Postgres |
Previous Message | Peter Eisentraut | 2003-05-07 18:38:56 | Re: information_schema OID |