From: James Neff <jneff@tethyshealth.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: exclusive locking on SELECT ?
Date: Fri, 12 Jan 2007 09:14:13 -0500
Message-ID: <45A797B5.6020800@tethyshealth.com> (raw)
In-Reply-To: <C62C61AE-36EE-422B-8DA9-C36B77598C3A@fastcrypt.com>
References: <45A6B07F.3050902@tethyshealth.com>
<C62C61AE-36EE-422B-8DA9-C36B77598C3A@fastcrypt.com>
Dave Cramer wrote:
>
> On 11-Jan-07, at 4:47 PM, James Neff wrote:
>
>> Greetings,
>>
>> I have 3 clients trying to do a select on the same table (different
>> rows). pgAdmin III Server Status shows the queries and has as mode
>> "Exclusive Lock" for all three.
> Are you doing select for update ? If so why so many rows ?
>
>
No updates, just a select. Is there a way (in Java) to only select one
row at a time from a resultset, and is this a good idea? The clients
are processing rows from this one table in 2000 record chunks. There
are about 9 million rows total to process.
>>
>> How would I go about diagnosing this situation, and how do I fix it?
>
> Have you tuned the server ?
I'm doing a search now on "tuning postgres". Do you have any suggested
links that might pertain to my particular situation?
Thanks again,
James
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-jdbc@postgresql.org
Cc: jneff@tethyshealth.com, pg@fastcrypt.com
Subject: Re: exclusive locking on SELECT ?
In-Reply-To: <45A797B5.6020800@tethyshealth.com>
References: <45A6B07F.3050902@tethyshealth.com> <C62C61AE-36EE-422B-8DA9-C36B77598C3A@fastcrypt.com> <45A797B5.6020800@tethyshealth.com>
* 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