Re: IPv6 link-local addresses and init data type

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Markus Wanner <markus(at)bluegap(dot)ch>, Andreas Karlsson <andreas(at)proxel(dot)se>, Tom Dunstan <pgsql(at)tomd(dot)cc>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: IPv6 link-local addresses and init data type
Date: 2016-06-07 18:43:05
Message-ID: 9bf12c6c-77f2-56c9-14d2-209cc1f389bb@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 6/7/16 1:19 AM, Haribabu Kommi wrote:
> How about the following case, Do we treat them as same or different?
>
> select 'fe80::%eth1'::inet = 'fe80::%ETH1'::inet;
>
> fe80::%2/64 is only treated as the valid address but not other way as
> fe80::/64%2.
> Do we need to throw an error in this case or just ignore.

I suspect questions like these are already solved in someone else's IP
address type/object/class implementation, and we could look there.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2016-06-07 19:23:46 Re: Problem with dumping bloom extension
Previous Message Peter Eisentraut 2016-06-07 18:40:23 Re: Problem with dumping bloom extension