Re: inet subtraction fails with IPv6?

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Jon Nelson <jnelson+pgsql(at)jamponi(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: inet subtraction fails with IPv6?
Date: 2012-01-31 20:03:28
Message-ID: CA+TgmoZbvOwYdL4j1ydT5iWQa0zU=14Y6oXh5n=YP_G6Ze=5cA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, Jan 31, 2012 at 10:38 AM, Jon Nelson <jnelson+pgsql(at)jamponi(dot)net> wrote:
> Example (using one of google's IPv6 addrs):
>
> jnelson=# select inet '0::0' - inet '2001:4860:4006:800::1011';
> ERROR:  result is out of range
> jnelson=#

What were you expecting to get? There's no such thing as a negative IP address.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jon Nelson 2012-01-31 20:07:59 Re: inet subtraction fails with IPv6?
Previous Message Robert Haas 2012-01-31 17:56:17 Re: BUG #6200: standby bad memory allocations on SELECT