Re: [GENERAL] Re : Solaris Performance - Profiling (Solved) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [GENERAL] Re : Solaris Performance - Profiling (Solved)
Date
Msg-id 9714.1017851115@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] Re : Solaris Performance - Profiling (Solved)  (Doug McNaught <doug@wireboard.com>)
List pgsql-hackers
Doug McNaught <doug@wireboard.com> writes:
> Actually, the C standard says nothing about what algorithm should be
> used for qsort(); it's simply supposed to be a fast in-memory sort.
> The qsort() name is just a historical artifact.

In practice I believe qsort usually is a quicksort; it's just too good
of a general-purpose algorithm.  However you do need a good heuristic
for selecting the median value to split on, or you can get burnt by
corner cases.  I'm guessing that Sun was careless and got burnt ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Locale support is now on by default
Next
From: mlw
Date:
Subject: Re: [GENERAL] Re : Solaris Performance - Profiling (Solved)