From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Cc: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, "Richard RK(dot) Klingler" <richard(at)klingler(dot)net>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: IP address, subnet query behaves wrong for /32 |
Date: | 2015-08-06 19:10:31 |
Message-ID: | 16388.1438888231@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> On Thu, Aug 6, 2015 at 10:02 AM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
> wrote:
>> " If the netmask is 32 and the address is IPv4, then the value does not
>> indicate a subnet, only a single host."
>>
>> So it is behaving as documented.
> This seems overly simplified given that "<<=" will indeed match two host
> specifications.
No, only one. There is no difference between '192.168.0.1'::inet and
'192.168.0.1/32'::inet; they're the same value. The first notation
is merely a shorthand for the second.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Richard RK. Klingler | 2015-08-06 19:35:19 | Re: IP address, subnet query behaves wrong for /32 |
Previous Message | David G. Johnston | 2015-08-06 17:07:41 | Re: IP address, subnet query behaves wrong for /32 |