numeric to ipv6 inet

Поиск
Список
Период
Сортировка
От Mikhail Puzanov
Тема numeric to ipv6 inet
Дата
Msg-id CAJWC0jB4ZqrXi2RC9KLXb5mWsQuvc9u8H0-3p2_wOBP5k1c46Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: numeric to ipv6 inet  (Osvaldo Kussama <osvaldo.kussama@gmail.com>)
Re: numeric to ipv6 inet  (Arjen Nienhuis <a.g.nienhuis@gmail.com>)
Список pgsql-general
Hello,

I need to convert the set of ipv6 addresses stored as numerics
(by historical reasons mostly) to inet type.

Something like
'0:0:0:0:0:0:0:0'::inet + 55831599345971591062080247067748335616::bigint
apparently doesn't work as the number added is too big to be converted to bigint.

Is there any reasonable way to do it in sql/pgplsql?

Thanks in advance.  

--
Best regards,
Mikhail V. Puzanov.

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

Предыдущее
От: Vincent Veyron
Дата:
Сообщение: Re: Locale Issue
Следующее
От: sachin kotwal
Дата:
Сообщение: Re: filling database