Re: [HACKERS] qsort again (was Re: Strange Create Index - Mailing list pgsql-performance

From Neil Conway
Subject Re: [HACKERS] qsort again (was Re: Strange Create Index
Date
Msg-id 1140055972.31672.42.camel@localhost.localdomain
Whole thread Raw
In response to qsort again (was Re: Strange Create Index behaviour)  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] qsort again
List pgsql-performance
On Wed, 2006-02-15 at 18:28 -0500, Tom Lane wrote:
> It seems clear that our qsort.c is doing a pretty awful job of picking
> qsort pivots, while glibc is mostly managing not to make that mistake.
> I haven't looked at the glibc code yet to see what they are doing
> differently.

glibc qsort is actually merge sort, so I'm not surprised it avoids this
problem.

-Neil



pgsql-performance by date:

Previous
From: Simon Riggs
Date:
Subject: Re: [HACKERS] qsort again (was Re: Strange Create Index
Next
From: Ron
Date:
Subject: Re: qsort again (was Re: Strange Create Index