Re: Adding integers ( > 8 bytes) to an inet

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Adding integers ( > 8 bytes) to an inet
Дата
Msg-id 23362.1252593049@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Adding integers ( > 8 bytes) to an inet  (Kristian Larsson <kristian@spritelink.net>)
Ответы Re: Adding integers ( > 8 bytes) to an inet  (Sam Mason <sam@samason.me.uk>)
Список 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 по дате отправления:

Предыдущее
От: Kristian Larsson
Дата:
Сообщение: Re: Adding integers ( > 8 bytes) to an inet
Следующее
От: Grant Maxwell
Дата:
Сообщение: "show all" command crashes server