From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: redmapleleaf@gmail.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Help: massive parallel update to the same table
Date: Fri, 18 Mar 2011 11:06:53 -0500
Message-ID: <4D833CCD020000250003BAAB@gw.wicourts.gov> (raw)
References: <4D833C26020000250003BAA8@gw.wicourts.gov>
<4D833CCD020000250003BAAB@gw.wicourts.gov>
[rearranged - please don't top-post]
[also, bringing this back to the list - please keep the list copied]
Red Maple <redmapleleaf@gmail.com> wrote:
> Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:
>> It should be parallel by default. Are you taking out any
>> explicit locks?
> my clients use psql to remotely run an update function on the
> postgres server. Each client run its own psql to connect to the
> server. What I have noticed is that if I commented out the update
> in the function so that only query is being done then all the core
> would kick in and run at 100%. However if I allow the update on
> the function then only one core would run.
> Currently it take 40min to update all the client statistics
Please show us the part you commented out to get the faster run
time, and the source code for the function you mentioned.
> Do you know if I have configured something incorrectly?
>
> I am running postgres 9.0.2 on fedora core 14. Here is my
> postgres.conf file
>
>
> [over 500 lines of configuration, mostly comments, wrapped]
If you're going to post that, please strip the comments or post the
results of this query:
http://wiki.postgresql.org/wiki/Server_Configuration
I don't think anything in your configuration will affect this
particular problem, but it seems likely that you could do some
overall tuning. If you want to do that, you should probably start a
new thread after this issue is sorted out.
-Kevin
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: Kevin.Grittner@wicourts.gov, redmapleleaf@gmail.com
Subject: Re: Help: massive parallel update to the same table
In-Reply-To: <4D833CCD020000250003BAAB@gw.wicourts.gov>
References: <4D833C26020000250003BAA8@gw.wicourts.gov> <4D833CCD020000250003BAAB@gw.wicourts.gov>
* 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