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 A75419FB460 for ; Fri, 25 Aug 2006 01:30:14 -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 65377-05 for ; Fri, 25 Aug 2006 01:30:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 61F7E9FB458 for ; Fri, 25 Aug 2006 01:30:01 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k7P4TsCm018309; Fri, 25 Aug 2006 00:29:54 -0400 (EDT) To: Scott Marlowe cc: =?ISO-8859-1?Q?Andr=E9_Jos=E9?= Guergolet , Andrew Sullivan , pgsql-sql@postgresql.org Subject: Re: RES: Lock Problem In-reply-to: <1156454380.7223.91.camel@state.g2switchworks.com> References: <3FFA1818C1550246933DEA311C39B07612304A@CGEXC03.compugraf.com.br> <1156454380.7223.91.camel@state.g2switchworks.com> Comments: In-reply-to Scott Marlowe message dated "Thu, 24 Aug 2006 16:19:41 -0500" Date: Fri, 25 Aug 2006 00:29:54 -0400 Message-ID: <18308.1156480194@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.145 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/197 X-Sequence-Number: 26155 Scott Marlowe writes: > On Thu, 2006-08-24 at 16:12, André José Guergolet wrote: >> My system, checks if my script is running in each machine at this table, this table has 360 rows and has 50-100 updates per minute in columns STATE and STATEDATE. > Are you vacuuming the database often enough? Is this table suffering > from bloat? That's my bet. With numbers like those, that table has to get vacuumed every few minutes to keep performance from going into the tank. regards, tom lane