Search Postgresql Archives

Strange input/cast semantics for inet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
greg


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux