Re: sorting on inet type?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: sorting on inet type?
Дата
Msg-id 11694.985111648@sss.pgh.pa.us
обсуждение исходный текст
Ответ на sorting on inet type?  ("Daniel J. Kressin" <dkressin@globalcrossing.com>)
Список pgsql-general
"Daniel J. Kressin" <dkressin@globalcrossing.com> writes:
> Tom Lane wrote:
>> host(ip) produces a text result, so the above sort is according to
>> string-comparison rules.  If you want a numeric sort why don't
>> you just "ORDER BY ip"?

> "ORDER BY ip" didn't work.  I'm assuming this is the broken behaviour
> that Larry mentioned is fixed in 7.1.

Ah.  Sorry, I tried it in current sources to verify that it produced
the sort order you wanted ... but I forgot that we'd done some work
on inet since 7.0.*.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: sorting on inet type?
Следующее
От: Chris Bowlby
Дата:
Сообщение: Client can not connect to socket...