Re: bigint to ipaddress

Поиск
Список
Период
Сортировка
От Camilo Sperberg
Тема Re: bigint to ipaddress
Дата
Msg-id f05190a90908090542w3840abd6w430d0dfae2995b1b@mail.gmail.com
обсуждение исходный текст
Ответ на bigint to ipaddress  ("Mindaugas G." <mindaugas@biovela.lt>)
Список pgsql-general
There is no such thing as converting a bigint into an text ip address, unless you make it xD Google for "postgres INET_ATON" (INET_ATON is mysql's ip-to-int)

However, there are datatypes in postgres which allow you to work directly with ips and networks:
http://www.postgresql.org/docs/7.4/interactive/datatype-net-types.html

Greetings ;)

On Sun, Aug 9, 2009 at 05:44, Mindaugas G. <mindaugas@biovela.lt> wrote:
Hi,

googling few days with no success,
for example I have db with ip_src etc ant its data type bigint,
how must look select query what I can see ip address (int) instead of bigint?




--
Mailed by:
UnReAl4U - unreal4u
ICQ #: 54472056
www: http://www.chw.net/

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

Предыдущее
От: "Abraham, Danny"
Дата:
Сообщение: Re: PG fails on Windows Server 2008: could not reattach to shared memory ... : 487
Следующее
От: Kobus Wolvaardt
Дата:
Сообщение: Postgres memory question