VARCHAR to CIDR type cast : external function for 6.5

Поиск
Список
Период
Сортировка
От Nicolas Huillard
Тема VARCHAR to CIDR type cast : external function for 6.5
Дата
Msg-id 01C0F46F.2657A840.nhuillard@ghs.fr
обсуждение исходный текст
Список pgsql-general
With the patch from Alex Pilosov (7.1), I was able to create external functions (6.5) to cast TEXT type to CIDR.
These function allow things like :
    SELECT text_inet(text_field);
    SELECT ... FROM ... WHERE text_cidr(text_field) >> '192.168.200.1'::inet;
...which are impossible with the current Postgres.
The code has greatly changed from 6.5 to 7.1, so these function might help users of older versions...
Extract the tarball, compile and install (tested on Linux/Postgres 6.5.3).



NH

Вложения

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

Предыдущее
От: "David Wall"
Дата:
Сообщение: Re: Vacuum analyze in 7.1.1
Следующее
От: "Rob Arnold"
Дата:
Сообщение: Re: abs() does not exists..