Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group