Skip site navigation (1) Skip section navigation (2)

Multiple index builds on same table - in one sweep?

From: Chris Ruprecht <chris(at)ruprecht(dot)org>
To: pgsql-performance(at)postgresql(dot)org
Subject: Multiple index builds on same table - in one sweep?
Date: 2011-04-09 16:28:21
Message-ID: DD8709CB-474F-4002-B555-1ED974371364@ruprecht.org (view raw or flat)
Thread:
Lists: pgsql-performance
I have a table that I need to rebuild indexes on from time to time (records get loaded before indexes get build).

To build the indexes, I use 'create index ...', which reads the entire table and builds the index, one at a time.
I'm wondering if there is a way to build these indexes in parallel while reading the table only once for all indexes and building them all at the same time. Is there an index build tool that I missed somehow, that can do this?

Thanks,
Chris. 



best regards,
chris
-- 
chris ruprecht
database grunt and bit pusher extraordinaíre


Responses

pgsql-performance by date

Next:From: Tom LaneDate: 2011-04-09 17:10:04
Subject: Re: Multiple index builds on same table - in one sweep?
Previous:From: Tomas VondraDate: 2011-04-09 14:59:38
Subject: Re: Why it is using/not using index scan?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group