Re: Adding integers ( > 8 bytes) to an inet - Mailing list pgsql-general

From Tom Lane
Subject Re: Adding integers ( > 8 bytes) to an inet
Date
Msg-id 23362.1252593049@sss.pgh.pa.us
Whole thread Raw
In response to Re: Adding integers ( > 8 bytes) to an inet  (Kristian Larsson <kristian@spritelink.net>)
Responses Re: Adding integers ( > 8 bytes) to an inet
List pgsql-general
Kristian Larsson <kristian@spritelink.net> writes:
> Do we
> a) ignore it and let users use the workarounds?
> b) add a next_address() as per Toms suggestion ?
> c) add a conversation between NUMERIC and INET so one can add a
> NUMERIC to an INET just as is possible today with INTEGERs?

I vote for (a).

It was already pointed out that you can build next_address and the
other related functions out of the existing operations, so
proposal (b) wouldn't buy much.

Proposal (c) is disingenuous because it ignores the fact that NUMERIC
does not have (and cannot easily implement) most of the bitwise
operations that people might think they want here.

            regards, tom lane

pgsql-general by date:

Previous
From: Kristian Larsson
Date:
Subject: Re: Adding integers ( > 8 bytes) to an inet
Next
From: Grant Maxwell
Date:
Subject: "show all" command crashes server