pgsql: Clarify description of CIDR-address column of pg_hba.conf, to

Lists: pgsql-committerspgsql-hackers
From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Clarify description of CIDR-address column of pg_hba.conf, to
Date: 2006-11-17 23:25:17
Message-ID: 20061117232517.427E99FA0FB@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Log Message:
-----------
Clarify description of CIDR-address column of pg_hba.conf, to discourage
people from trying notations like '10.6/16', which is accepted but does
not mean what you probably think. Per example from Paul Forgey.

Modified Files:
--------------
pgsql/doc/src/sgml:
client-auth.sgml (r1.94 -> r1.95)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/client-auth.sgml.diff?r1=1.94&r2=1.95)


From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Clarify description of CIDR-address column
Date: 2006-11-18 00:05:54
Message-ID: 2527.24.211.165.134.1163808354.squirrel@www.dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Tom Lane wrote:
> Log Message:
> -----------
> Clarify description of CIDR-address column of pg_hba.conf, to discourage
> people from trying notations like '10.6/16', which is accepted but does
> not mean what you probably think. Per example from Paul Forgey.
>

Isn't the real problem here that 10.6 doesn't mean what you probably think?

cheers

andrew


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Clarify description of CIDR-address column
Date: 2006-11-18 02:38:05
Message-ID: 23650.1163817485@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

"Andrew Dunstan" <andrew(at)dunslane(dot)net> writes:
> Tom Lane wrote:
>> Clarify description of CIDR-address column of pg_hba.conf, to discourage
>> people from trying notations like '10.6/16', which is accepted but does
>> not mean what you probably think. Per example from Paul Forgey.

> Isn't the real problem here that 10.6 doesn't mean what you probably think?

If you're proposing that we change the behavior of inet_aton(), I don't
think that's much of a solution, since then people who do remember the
old notation ... or recognize the analogy to IPv6 abbreviations, which
are not a lot different ... would get burnt. We can't do it anyway on
most modern platforms, unless we want to replace all of getaddrinfo()
which seems pretty unappealing.

regards, tom lane


From: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Clarify description of CIDR-address
Date: 2006-11-18 02:51:56
Message-ID: 455E754C.3060109@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Tom Lane wrote:
> "Andrew Dunstan" <andrew(at)dunslane(dot)net> writes:
>> Tom Lane wrote:
>>> Clarify description of CIDR-address column of pg_hba.conf, to discourage
>>> people from trying notations like '10.6/16', which is accepted but does
>>> not mean what you probably think. Per example from Paul Forgey.
>
>> Isn't the real problem here that 10.6 doesn't mean what you probably think?
I'm curious now - what _does_ 10.6/16 mean? I can't imagine any sensible
meaning apart from 10.6.0.0/16...

Please enlighten me.

greetings, Florian Pflug


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Clarify description of CIDR-address column
Date: 2006-11-18 03:26:05
Message-ID: 24142.1163820365@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

"Florian G. Pflug" <fgp(at)phlo(dot)org> writes:
>> "Andrew Dunstan" <andrew(at)dunslane(dot)net> writes:
>>> Isn't the real problem here that 10.6 doesn't mean what you probably think?

> I'm curious now - what _does_ 10.6/16 mean? I can't imagine any sensible
> meaning apart from 10.6.0.0/16...

10.6 means the same as 10.0.0.6 --- see src/port/inet_aton.c.
This has been discussed before:
http://archives.postgresql.org/pgsql-hackers/2004-01/msg00132.php

My feeling is the same as it was then, ie, we are not in the business of
second-guessing standard library routines.

regards, tom lane


From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Clarify description of
Date: 2006-11-18 03:39:10
Message-ID: 4608.24.211.165.134.1163821150.squirrel@www.dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers pgsql-hackers

Tom Lane wrote:
> "Andrew Dunstan" <andrew(at)dunslane(dot)net> writes:
>> Tom Lane wrote:
>>> Clarify description of CIDR-address column of pg_hba.conf, to
>>> discourage
>>> people from trying notations like '10.6/16', which is accepted but does
>>> not mean what you probably think. Per example from Paul Forgey.
>
>> Isn't the real problem here that 10.6 doesn't mean what you probably
>> think?
>
> If you're proposing that we change the behavior of inet_aton(), I don't
> think that's much of a solution, since then people who do remember the
> old notation ... or recognize the analogy to IPv6 abbreviations, which
> are not a lot different ... would get burnt. We can't do it anyway on
> most modern platforms, unless we want to replace all of getaddrinfo()
> which seems pretty unappealing.
>

No, I'm only suggesting that the confusion has much to do with the use of
abbreviated addresses and not much to do with use of CIDR masks. If we are
worried about the confusion we should spell out the problem explicitly.

cheers

andrew