From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Greg Stark <gsstark(at)mit(dot)edu> |
Cc: | PostgreSQL General Discussion <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Strange input/cast semantics for inet |
Date: | 2005-07-22 05:14:44 |
Message-ID: | 200507220514.j6M5EiO09595@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Greg Stark wrote:
>
> This looks very strange to me:
>
> staging=> select '1.10'::cidr;
> cidr
> -------------
> 1.10.0.0/16
> (1 row)
>
>
> The normal way to read "1.10" would be as synonymous with "1.0.0.10". This is
> even mandated by the POSIX spec for getaddrinfo and company. q
Interesting. Inet doesn't allow it, but I assume CIDR does because it
is a network and the trailing values are just assumed to be zero. It
looks OK to me as a CIDR.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Fuhr | 2005-07-22 05:35:08 | Re: Dumb question about count() |
Previous Message | Benjamin Smith | 2005-07-22 05:09:07 | Dumb question about count() |