First time I am seeing this - well done, exactly what I needed. That doesn't address the above bug though - the "between" functionality is still wrong and needs to be corrected.Have you tried using the ip4r extension yet?
-- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs