Re: how to improve the performance of creating index

From: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
To: "Yinan Li" <yinanli(at)cse(dot)ust(dot)hk>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: how to improve the performance of creating index
Date: 2007-10-19 12:03:27
Message-ID: 47189D0F.6090707@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Yinan Li wrote:
> I am trying to improve the performance of creating index.
>
> I've set shared_buffers = 1024MB
>
> Effective_cache_size = 1024MB
>
> Work_mem = 1GB
>
> Maintenance_work_mem=512MB
>
> (I'm sure that the server process has received the SIGHUP signal)
>
> However, when create index, I found that the memory used by Postgres is only
> 50MB. And it is very slow. How to make it faster?

What version of Postgres are you using? How much RAM does the box have?
How big is the table? How long does the index build take? What kind of
an I/O system do you have?

maintenance_work_mem is the one that controls how much memory is used
for the sort.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Chris Browne 2007-10-19 12:52:05 Re: how to improve the performance of creating index
Previous Message Yinan Li 2007-10-19 11:57:32 how to improve the performance of creating index