Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 237559FB548 for ; Fri, 12 Jan 2007 10:13:59 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 95266-03 for ; Fri, 12 Jan 2007 10:13:41 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lvs00-fl-n03.ftl.affinity.com (lvs00-fl-n03.ftl.affinity.com [216.219.253.136]) by postgresql.org (Postfix) with ESMTP id 7F2319FB2F5 for ; Fri, 12 Jan 2007 10:13:46 -0400 (AST) Received: from [151.196.58.209] ([151.196.58.209]:24072 "EHLO [192.168.16.25]") by ams003.ftl.affinity.com with ESMTP id S408424AbXALONo (ORCPT ); Fri, 12 Jan 2007 09:13:44 -0500 Message-ID: <45A797B5.6020800@tethyshealth.com> Date: Fri, 12 Jan 2007 09:14:13 -0500 From: James Neff User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Dave Cramer CC: pgsql-jdbc@postgresql.org Subject: Re: exclusive locking on SELECT ? References: <45A6B07F.3050902@tethyshealth.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.191 tagged_above=0 required=5 tests=AWL, BAYES_50 X-Spam-Level: X-Archive-Number: 200701/90 X-Sequence-Number: 16455 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