Re: Solaris - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Solaris
Date
Msg-id 200304291409.h3TE9gV18867@candle.pha.pa.us
Whole thread Raw
In response to Re: Solaris  (Mark Kirkwood <markir@paradise.net.nz>)
Responses qsort (was Re: Solaris)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
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


pgsql-general by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: Error: No one parent tuple was found
Next
From: Tom Lane
Date:
Subject: Re: Backend memory leakage when inserting