Re: Re : Solaris Performance - Profiling (Solved)

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Mark kirkwood <markir(at)slingshot(dot)co(dot)nz>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: Re : Solaris Performance - Profiling (Solved)
Date: 2002-04-03 18:41:14
Message-ID: 200204031841.g33IfEm10104@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message mlw 2002-04-03 18:43:21 Re: Suggestions please: names for function
Previous Message Tom Lane 2002-04-03 18:29:40 Re: Suggestions please: names for function cachabilityattributes

Browse pgsql-hackers by date

  From Date Subject
Next Message mlw 2002-04-03 18:43:21 Re: Suggestions please: names for function
Previous Message Bruce Momjian 2002-04-03 18:36:33 Re: timeout implementation issues