Re: self defined data type "with limit"?

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: self defined data type "with limit"?
Дата
Msg-id 4682A16D.6040800@enterprisedb.com
обсуждение исходный текст
Ответ на Re: self defined data type "with limit"?  (Michael Enke <michael.enke@wincor-nixdorf.com>)
Ответы Re: self defined data type "with limit"?  (Michael Enke <michael.enke@wincor-nixdorf.com>)
Список pgsql-hackers
Michael Enke wrote:
> My primary goal is to get quasi numeric ordering on text column, e.g.
> 1
> 2
> 10
> Normal order with varchar would be
> 1
> 10
> 2

You don't need to custom type for that. A custom operator class with 
custom comparison operators is enough.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Michael Enke
Дата:
Сообщение: Re: self defined data type "with limit"?
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: GiST consistent function, expected arguments; multi-dimensional indexes