Mark Kirkwood wrote:
> scott.marlowe wrote:
>
> >Actually, I thought there was patch out there somewhere. Anyone else
> >know?
> >
> >
> >
> It looks like Solaris 9 has this included in a libc patch:
> http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fpatches/112874
>
> However I think the solution chosen by the Postgresql developers -
> using qsort.c from BSD is the best one, as it *sorts* all the Solaris
> releases (its in your Pg source : src/port/qsort.c).
>
> In fact I wonder if using the BSD qsort for *all* platforms might be a
> good idea - it would provide cross platform consistency and possibly
> better performance (e.g. It was several times quicker than glibc qsort,
> when I checked this on Linux last year.... )
Replacing qsort() on all platforms has a "we know better than the OS"
feel to it that we try to avoid.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073