Re: [HACKERS] CIDR type and functions

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [HACKERS] man page installation patch
Следующее
От: Tom Ivar Helbekkmo
Дата:
Сообщение: Re: [HACKERS] Open 6.4 items