Re: Using an SMP machine to make multiple indices on the same table - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Using an SMP machine to make multiple indices on the same table
Date
Msg-id 20011023135208.A29468@svana.org
Whole thread Raw
In response to Using an SMP machine to make multiple indices on the same table  (Martin Weinberg <weinberg@osprey.astro.umass.edu>)
List pgsql-general
On Mon, Oct 22, 2001 at 05:38:23PM -0400, Martin Weinberg wrote:
> Folks,
>
> We have some big tables (1.2 billion records) and indexing is quite
> time consuming.  Since we have this running on dual Athlon box, it
> would be great to make indices in parallel.
>
> On Postgresql 7.1.3, it seems that the table is locked after the
> first "create index" is started up.  Is this right?  Is there any
> way to do this in parallel?

My question in, would it help. The creation of the index should only be
limited by the bandwidth of the drives. I would think that creating two
indexes at the same time would simply trash the disk a lot and end up being
slower.

The answer to your questions however, are yes and no respectivly.

HTH,
--
Martijn van Oosterhout <kleptog@svana.org>
http://svana.org/kleptog/
> Magnetism, electricity and motion are like a three-for-two special offer:
> if you have two of them, the third one comes free.

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: LIMIT TODO item
Next
From: Alvaro Herrera
Date:
Subject: Re: Database corruption?