Re: [HACKERS] Index creation takes for ever

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Manfred Koizar <mkoi-pg(at)aon(dot)at>, pgsql-patches(at)postgresql(dot)org, ohp(at)pyrenet(dot)fr, pgsql-hackers list <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Index creation takes for ever
Date: 2003-12-01 05:02:54
Message-ID: 200312010502.hB152s918672@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> >> If qsort is to blame, then maybe this patch could help. It sorts
> >> equal key values on item pointer. And if it doesn't help index
> >> creation speed, at least the resulting index has better correlation.
>
> > I will try to apply it within the next 48 hours.
>
> I think this is a *very* dubious idea. It introduces a low-level
> implementation dependency into our sort behavior on the strength of no
> more than an unfounded speculation that some platform's broken qsort
> might run faster. Even if the speculation were proven true, I'd be
> hesistant to apply it.

Roger --- patch removed. Thanks.

--
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-12-01 05:03:38 Re: [HACKERS] Index creation takes for ever
Previous Message Tom Lane 2003-12-01 04:57:06 Re: [HACKERS] Index creation takes for ever

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-12-01 05:03:28 Re: WIP: unique hash indexes
Previous Message Tom Lane 2003-12-01 05:02:04 Re: WIP: unique hash indexes