Re: [PERFORM] CREATE INDEX rather sluggish

2006-03-30 Thread Gavin Hamill
On Thu, 30 Mar 2006 18:08:44 +0100 Simon Riggs <[EMAIL PROTECTED]> wrote: Hello again Simon :) > The index build time varies according to the number and type of the > datatypes, as well as the distribution of values in the table. As well > as the number of rows in the table. > > Note the x10 fac

Re: [PERFORM] CREATE INDEX rather sluggish

2006-03-30 Thread Gavin Hamill
Tom Lane wrote: Gavin Hamill <[EMAIL PROTECTED]> writes: The table has just under six million rows - should it really be taking nearly six minutes to add an index? Try running it with trace_sort enabled to get more info about where the time is going. We've been doing some considerabl

Re: [PERFORM] CREATE INDEX rather sluggish

2006-03-30 Thread Simon Riggs
On Thu, 2006-03-30 at 09:26 +0100, Gavin Hamill wrote: > Hullo, I have pg 8.1.3 on an 8-CPU AIX 5.3 box with 16GB of RAM, and I'm > finding that it's taking an age to CREATE INDEX on a large table: > > Column | Type | > Modifiers >

Re: [PERFORM] CREATE INDEX rather sluggish

2006-03-30 Thread Tom Lane
Gavin Hamill <[EMAIL PROTECTED]> writes: > The table has just under six million rows - should it really be taking > nearly six minutes to add an index? Try running it with trace_sort enabled to get more info about where the time is going. We've been doing some considerable work on the sorting co

[PERFORM] CREATE INDEX rather sluggish

2006-03-30 Thread Gavin Hamill
Hullo, I have pg 8.1.3 on an 8-CPU AIX 5.3 box with 16GB of RAM, and I'm finding that it's taking an age to CREATE INDEX on a large table: Column | Type | Modifiers ++---