Re: Incrementing INET fields

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: Incrementing INET fields
Дата
Msg-id 20061127144201.GD20371@phlogiston.dyndns.org
обсуждение исходный текст
Ответ на Incrementing INET fields  (Peter Nixonn <listuser@peternixon.net>)
Список pgsql-hackers
On Mon, Nov 27, 2006 at 03:04:01PM +0200, Peter Nixonn wrote:
> Is there some technical reason (other than finite developer time) that this
> isn't possible at present?

I don't think it makes much sense, without a fair amount of policy
around it.  For instance, you'd need to know what to increment to
when you get to 10.1.1.254/32.  Moreover, the mask range work you
mentioned as "icing on the cake" is not icing at all: it's part of
the cake, becase CIDR has been here for a long time.  So you _have_
to be able to know what range you're in in order to do autoincrement.

You could write a function that would do all this for you, though. 

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
This work was visionary and imaginative, and goes to show that visionary
and imaginative work need not end up well.     --Dennis Ritchie


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: [CORE] RC1 blocker issues
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Potential to_char localization bug