CIDR type and functions

From: darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain)
To: pgsql-hackers(at)PostgreSQL(dot)org
Subject: CIDR type and functions
Date: 1998-10-09 04:15:23
Message-ID: m0zRTxb-0000exC@druid.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Just curious, what functions did we finally settle on for this type?
I ask because I just thought of another function that might be useful.

select block(cidr1, cidr2);

to return 1 if cidr2 is part of the cidr1 block, -1 if cidr1 is part
of the cidr2 block and 0 if neither.

--
D'Arcy J.M. Cain <darcy(at){druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 424 2871 (DoD#0082) (eNTP) | what's for dinner.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-10-09 04:29:23 Open 6.4 items
Previous Message Bruce Momjian 1998-10-09 02:46:07 Re: [HACKERS] version functions (was NT port of PGSQL - success)