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

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Markus Schaber <schabi(at)logix-tt(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: qsort again (was Re: [PERFORM] Strange Create Index
Date: 2006-02-16 22:51:02
Message-ID: 871wy23okp.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

Markus Schaber <schabi(at)logix-tt(dot)com> writes:

> Hmm, to remove redundancy, I'd change the <= to a < and define:
>
> if a==b then f(a)==f(b)
> if a<b then f(a)<=f(b)
>
> > 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.

--
greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message PFC 2006-02-16 23:05:23 Re: [HACKERS] qsort again (was Re: Strange Create Index
Previous Message Martijn van Oosterhout 2006-02-16 22:40:06 Re: qsort again (was Re: [PERFORM] Strange Create Index

Browse pgsql-performance by date

  From Date Subject
Next Message PFC 2006-02-16 23:05:23 Re: [HACKERS] qsort again (was Re: Strange Create Index
Previous Message Martijn van Oosterhout 2006-02-16 22:40:06 Re: qsort again (was Re: [PERFORM] Strange Create Index