Re: Index creation time and distribution - Mailing list pgsql-performance

From Guillaume Smet
Subject Re: Index creation time and distribution
Date
Msg-id 1d4e0c10805220638x64f80609ob9a6fe00e4587362@mail.gmail.com
Whole thread Raw
In response to Re: Index creation time and distribution  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Index creation time and distribution  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
On Thu, May 22, 2008 at 3:14 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Do you have maintenance_work_mem set large enough that the index
> creation sort is done in-memory?  8.1 depends on the platform's qsort
> and a lot of them are kinda pessimal for input like this.

FWIW, it's a 32 bits CentOS 4.6 box.

maintenance_work_mem is set to 256 MB and the size of the index is 400 MB.

Should I try to raise it up to 512 MB? The server only has 2GB of RAM
so it seems a bit high.

> 8.2 (which uses our own qsort) seems to perform better in a quick
> test.

Mmmmh OK. I was considering an upgrade to 8.3 in the next months anyway.

Do we agree that in the case of unnamed prepared statement, 8.3 plans
the query after the BIND? The partial index seems to be a better
solution anyway, considering that it's 12 MB vs 400 MB.

Thanks.

--
Guillaume

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Index creation time and distribution
Next
From: Matthew Wakeling
Date:
Subject: Re: Index creation time and distribution