Search Postgresql Archives

Bug? Netmask of CIDR as TEXT has trailing masklen

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

 



The following displays as I would expect:

    mark=# select netmask('1.1.1.0/24');
        netmask    
    ---------------
     255.255.255.0
    (1 row)

However the following does not look right:

    mark=# select netmask('1.1.1.0/24')::text;
         netmask      
    ------------------
     255.255.255.0/32
    (1 row)

The trailing "/32" should not be there. I have been trying to compare
TEXT strings like '255.255.255.0' with the netmask of a CIDR column and
the above is making it difficult.

Regards,
Mark
-- 
Mark Lawrence


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[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