Re: Solaris

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Mark Kirkwood <markir(at)paradise(dot)net(dot)nz>
Cc: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>, Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in>, ianh(at)tpchd(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Solaris
Date: 2003-04-29 14:09:42
Message-ID: 200304291409.h3TE9gV18867@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

  • Re: Solaris at 2003-04-29 08:47:10 from Mark Kirkwood

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-04-29 14:11:19 Re: Backend memory leakage when inserting
Previous Message Nigel J. Andrews 2003-04-29 14:01:32 Re: Error: No one parent tuple was found