| От | Bruce Momjian |
|---|---|
| Тема | Re: [HACKERS] CIDR type and functions |
| Дата | |
| Msg-id | 199810090500.BAA28109@candle.pha.pa.us обсуждение |
| Ответ на | CIDR type and functions (darcy@druid.net (D'Arcy J.M. Cain)) |
| Ответы |
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. > Check \df and \fo. There is a >> and << operators that do subnet testing. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера