status on IPv6 implementation...
Hi all,
I was just wondering if the IPv6 datatype has allready been
implemented on the current version of postgres.
Thanks,
Lorenzo Huerta
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
Lorenzo Huerta <lorhuerta@yahoo.com> writes:
I was just wondering if the IPv6 datatype has allready been
implemented on the current version of postgres.
IPV4 will be in 6.4, but IPV6 won't. I've left comments and hooks all
over the IPV4 implementation, marking where to extend it to support
IPV6, but I haven't actually done so yet. The data type is variable
length, so that when it starts to support IPV6, existing tables will
not need to change, and can have IPV6 addresses dropped into them.
-tih
--
Popularity is the hallmark of mediocrity. --Niles Crane, "Frasier"
Import Notes
Reply to msg id not found: LorenzoHuerta'smessageofMon5Oct1998140708-0700PDT
Does it treat the ip as text, or numeric value?
On 6 Oct 1998, Tom Ivar Helbekkmo wrote:
Date: 06 Oct 1998 10:25:28 +0200
From: Tom Ivar Helbekkmo <tih@nhh.no>
To: Lorenzo Huerta <lorhuerta@yahoo.com>
Cc: pgsql-general@postgreSQL.org, lorenzo@nmsu.edu
Subject: Re: [GENERAL] status on IPv6 implementation...Lorenzo Huerta <lorhuerta@yahoo.com> writes:
I was just wondering if the IPv6 datatype has allready been
implemented on the current version of postgres.IPV4 will be in 6.4, but IPV6 won't. I've left comments and hooks all
over the IPV4 implementation, marking where to extend it to support
IPV6, but I haven't actually done so yet. The data type is variable
length, so that when it starts to support IPV6, existing tables will
not need to change, and can have IPV6 addresses dropped into them.-tih
--
Popularity is the hallmark of mediocrity. --Niles Crane, "Frasier"
Thanks,
__________________________________________________________________
* Lorenzo J. Huerta *
* Programming Assistant *
* Computing & Networking Networking Architecture and Operations *
* New Mexico State University *
* phone: (w)(505)646-2582 (h)(505) 521-8699 fax:(505) 646-8139 *
* e-mail: lorenzo@nmsu.edu *
* Web Site: http://web.nmsu.edu/~ljhuerta *
__________________________________________________________________
Hi all,
I was just wondering if the IPv6 datatype has allready been
implemented on the current version of postgres.
It should be in the CVS version, if you want to test it.
-DEJ
Show quoted text
Thanks,
Lorenzo Huerta_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
Import Notes
Resolved by subject fallback
Hi all,
I was just wondering if the IPv6 datatype has allready been
implemented on the current version of postgres.It should be in the CVS version, if you want to test it.
-DEJ
Just a clarification. The new INET/MAC type in 6.4 will not have IPv6
capability, but is planned for 6.5.
--
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
Lorenzo Huerta <lorenzo@nmsu.edu> writes:
Does it treat the ip as text, or numeric value?
Neither. It handles IPV4 CIDRs, of which host addresses are a special
case, as just what they are. Input and output are textual, of course.
The internal storage format looks like this:
typedef struct {
unsigned char family; /* AF_INET (or, soon, AF_INET6) */
unsigned char bits; /* CIDR prefix length */
union {
u_int32_t ipv4_addr; /* network byte order */
/* add IPV6 address type here */
} addr;
} ipaddr_struct;
Oh, and the actual method of storage in the database is variable
length, so even when IPV6 code is added, the IPV4 storage format won't
change in size or layout.
-tih
--
Popularity is the hallmark of mediocrity. --Niles Crane, "Frasier"
Import Notes
Reply to msg id not found: LorenzoHuerta'smessageofTue6Oct1998092122-0600MDT