pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Ruprecht <chris@ruprecht.org>
To: pgsql-performance@postgresql.org
Subject: Multiple index builds on same table - in one sweep?
Date: Sat, 9 Apr 2011 12:28:21 -0400
Message-ID: <DD8709CB-474F-4002-B555-1ED974371364@ruprecht.org> (raw)

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




view thread (11+ messages)  latest in thread

Message-ID: <DD8709CB-474F-4002-B555-1ED974371364@ruprecht.org>
Permalink:  ../DD8709CB-474F-4002-B555-1ED974371364@ruprecht.org/
Also on:    postgresql.org/message-id/DD8709CB-474F-4002-B555-1ED974371364@ruprecht.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: chris@ruprecht.org
  Subject: Re: Multiple index builds on same table - in one sweep?
  In-Reply-To: <DD8709CB-474F-4002-B555-1ED974371364@ruprecht.org>
  References: <DD8709CB-474F-4002-B555-1ED974371364@ruprecht.org>

* 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