Re: Re : Solaris Performance - Profiling (Solved) - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Re : Solaris Performance - Profiling (Solved)
Date
Msg-id 200204031841.g33IfEm10104@candle.pha.pa.us
Whole thread Raw
In response to Re: Re : Solaris Performance - Profiling (Solved)  (Mark kirkwood <markir@slingshot.co.nz>)
Responses Re: Re : Solaris Performance - Profiling (Solved)
List pgsql-general
Mark kirkwood wrote:
> > It might be entertaining to snarf a qsort off the net (from glibc,
> > perhaps) and link it into Postgres to see if you get better results.
> >
> >             regards, tom lane
> >
> Indeed it is - obtained qsort.c from Freebsd CVS and rebuilt Postgresql :
> The query now takes 6 seconds instead of 1 hour ! Thanks for an
> excellent suggestion.

That is shocking.  I have the Solaris 8 source code here so if people
want info on exactly what is done in their qsort() routine, I can supply
that.  How can a routine change a query from 1 hour to 6 seconds?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: "David Esposito"
Date:
Subject: Re: Core dump on PG 7.1.3
Next
From: Bruce Momjian
Date:
Subject: Re: [SQL] Logging option