dotted quad netmask conversion

Поиск
Список
Период
Сортировка
От Steve Clark
Тема dotted quad netmask conversion
Дата
Msg-id 4CFE4FFC.9010500@netwolves.com
обсуждение исходный текст
Ответы Re: dotted quad netmask conversion  (Jon Nelson <jnelson+pgsql@jamponi.net>)
Список pgsql-general
Hello All,

I am working with a postgresql database that has two columns.
One for an ip address and another for the netmask. Both of these
columns are char varying(30). I would like to convert to just
one column as inet. Any one know a slick way to convert the
dotted quad netmask, E.G. 255.255.128.0, to number of bits. I didn't
see any way directly looking at the network functions in the PG documentation.

Thanks in advance for your consideration.
--
Stephen Clark
NetWolves
Sr. Software Engineer III
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark@netwolves.com
http://www.netwolves.com

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

Предыдущее
От: Michał Roszka
Дата:
Сообщение: Re: SELECT is immediate but the UPDATE takes forever
Следующее
От: Andy Colson
Дата:
Сообщение: Re: Do we want SYNONYMS?