From: Stephen Frost <sfrost@snowman.net>
To: Mozzi <mozzi.glug@gmail.com>
Cc: Matthew Wakeling <matthew@flymine.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Overusing 1 CPU
Date: Wed, 2 Jun 2010 07:59:16 -0400
Message-ID: <20100602115916.GE21875@tamriel.snowman.net> (raw)
In-Reply-To: <1275478657.1818.53.camel@stefaans-laptop>
References: <1275477160.1818.48.camel@stefaans-laptop>
<alpine.DEB.2.00.1006021222450.4083@aragorn.flymine.org>
<1275478657.1818.53.camel@stefaans-laptop>
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
Attachments:
signature.asc (application/pgp-signature, 196B) download
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: sfrost@snowman.net, mozzi.glug@gmail.com, matthew@flymine.org
Subject: Re: Overusing 1 CPU
In-Reply-To: <20100602115916.GE21875@tamriel.snowman.net>
* 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