Re: Overusing 1 CPU - Mailing list pgsql-performance

From Stephen Frost
Subject Re: Overusing 1 CPU
Date
Msg-id 20100602115916.GE21875@tamriel.snowman.net
Whole thread Raw
In response to Re: Overusing 1 CPU  (Mozzi <mozzi.glug@gmail.com>)
List pgsql-performance
Mozzi,

* Mozzi (mozzi.glug@gmail.com) wrote:
> Thanx mate Create Index seems to be the culprit.
> Is it normal to just use 1 cpu tho?

Yes, PG can only use 1 CPU for a given query or connection.  You'll
start to see the other CPUs going when you have more than one connection
to the database.  If you're building alot of indexes then you probably
want to split up the statements into multiple connections and run them
in parallel.

    Thanks,

        Stephen

Attachment

pgsql-performance by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: Overusing 1 CPU
Next
From: Joachim Worringen
Date:
Subject: Re: performance of temporary vs. regular tables