Re: [HACKERS] qsort again (was Re: Strange Create Index

Поиск
Список
Период
Сортировка
От Mark Lewis
Тема Re: [HACKERS] qsort again (was Re: Strange Create Index
Дата
Msg-id 1140132189.9076.261.camel@archimedes
обсуждение исходный текст
Ответ на Re: [HACKERS] qsort again (was Re: Strange Create Index  (Greg Stark <gsstark@mit.edu>)
Ответы Re: [HACKERS] qsort again (was Re: Strange Create Index  (David Lang <dlang@invendra.net>)
Список pgsql-performance
On Thu, 2006-02-16 at 17:51 -0500, Greg Stark wrote:
> > > Data types which could probably provide a useful function for f would be
> > > int2, int4, oid, and possibly int8 and text (at least for SQL_ASCII).
>
> How exactly do you imagine doing this for text?
>
> I could see doing it for char(n)/varchar(n) where n<=4 in SQL_ASCII though.


In SQL_ASCII, just take the first 4 characters (or 8, if using a 64-bit
sortKey as elsewhere suggested).  The sorting key doesn't need to be a
one-to-one mapping.

-- Mark Lewis

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

Предыдущее
От: PFC
Дата:
Сообщение: Re: [HACKERS] qsort again (was Re: Strange Create Index
Следующее
От: Markus Schaber
Дата:
Сообщение: Re: [HACKERS] qsort again (was Re: Strange Create Index