X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B77AA9FB384 for ; Thu, 24 Aug 2006 17:53:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 46016-03 for ; Thu, 24 Aug 2006 17:53:09 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id 5C8309FB25B for ; Thu, 24 Aug 2006 17:53:09 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1GGMPU-0005sg-Ak for pgsql-sql@postgresql.org; Thu, 24 Aug 2006 17:06:44 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 26CC64051; Thu, 24 Aug 2006 16:52:55 -0400 (EDT) Date: Thu, 24 Aug 2006 16:52:55 -0400 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: Lock Problem Message-ID: <20060824205255.GA24499@phlogiston.dyndns.org> References: <3FFA1818C1550246933DEA311C39B076123047@CGEXC03.compugraf.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <3FFA1818C1550246933DEA311C39B076123047@CGEXC03.compugraf.com.br> User-Agent: Mutt/1.5.9i Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.269 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200608/188 X-Sequence-Number: 26146 On Thu, Aug 24, 2006 at 05:27:58PM -0300, Andr=E9 Jos=E9 Guergolet wrote: > Hello all, I'm using the Postgres 8.0 and my product creates 7 > connections at the server. > =20 > One of my connections do an update at a simple table with 360 rows > and I've got many table locks. How I can take more scability? It's pretty hard to tell, given what you're telling us. The UPDATE will take a write-blocking lock on each of the rows for the duration of the transaction. You shouldn't have any table locks, unless you're not telling us something. You should post more detail. Why do you think you have table locks, to begin with? A --=20 Andrew Sullivan | ajs@crankycanuck.ca The plural of anecdote is not data. --Roger Brinner