CIDR type and functions

Поиск
Список
Период
Сортировка
От darcy@druid.net (D'Arcy J.M. Cain)
Тема CIDR type and functions
Дата
Msg-id m0zRTxb-0000exC@druid.net
обсуждение исходный текст
Ответы Re: [HACKERS] CIDR type and functions
Список 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@{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.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] version functions (was NT port of PGSQL - success)
Следующее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] RE: [SQL] random tuple