View Single Post

   
  #6 (permalink)  
Old 04-12-2008, 06:06 AM
Zdenek Kotala
 
Posts: n/a
Default Re: PG qsort vs. Solaris

Tom Lane wrote:
> Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
>> Is it time to "remove" PG qsort and use libc version for solaris 9, 10...?

>
> I have no particular desire to introduce a version number check until we
> have to. If you can show that the newer versions have a qsort that
> substantially *out-performs* ours, it would be worth doing that, but
> merely being competitive isn't enough to make it worth the trouble.
>


The implementation in the solaris uses same ideas like postgres
implementation exclude sort array detection. There are small difference
with threshold when median uses 9 items and threshold for insertion
sort. Performance is similarly - no winer (only on sorted array).

Zdenek

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply With Quote