pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Smet <guillaume.smet@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: Index creation time and distribution
Date: Thu, 22 May 2008 15:38:25 +0200
Message-ID: <1d4e0c10805220638x64f80609ob9a6fe00e4587362@mail.gmail.com> (raw)
In-Reply-To: <29529.1211462076@sss.pgh.pa.us>
References: <1d4e0c10805220532v514c2bd5je4c6c20ceb485495@mail.gmail.com>
	<29529.1211462076@sss.pgh.pa.us>

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



view thread (8+ messages)  latest in thread

Message-ID: <1d4e0c10805220638x64f80609ob9a6fe00e4587362@mail.gmail.com>
Permalink:  ../1d4e0c10805220638x64f80609ob9a6fe00e4587362@mail.gmail.com/
Also on:    postgresql.org/message-id/1d4e0c10805220638x64f80609ob9a6fe00e4587362@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: guillaume.smet@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Index creation time and distribution
  In-Reply-To: <1d4e0c10805220638x64f80609ob9a6fe00e4587362@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox