Re: An idea on faster CHAR field indexing - Mailing list pgsql-hackers

From Tom Lane
Subject Re: An idea on faster CHAR field indexing
Date
Msg-id 7122.961643899@sss.pgh.pa.us
Whole thread Raw
In response to Re: An idea on faster CHAR field indexing  (Giles Lean <giles@nemeton.com.au>)
Responses Re: An idea on faster CHAR field indexing  (Giles Lean <giles@nemeton.com.au>)
List pgsql-hackers
Giles Lean <giles@nemeton.com.au> writes:
> My only experience of this was tuning a sort utility, where the extra
> time to convert the strings with strxfrm() and the large additional
> memory requirement killed any advantage strcmp() had over strcoll().
> Whether this would be the case for database indexes in general or
> ideed ever I don't know.

Interesting.  That certainly suggests strxfrm could be a loser for
a database index too, but I agree it'd be nice to see some actual
measurements rather than speculation.

What locale(s) were you using when testing your sort code?  I suspect
the answers might depend on locale quite a bit...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Big 7.1 open items
Next
From: Tom Lane
Date:
Subject: Re: Big 7.1 open items