X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id BE9D0D1DB17 for ; Thu, 15 Apr 2004 20:11:59 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 49954-07 for ; Thu, 15 Apr 2004 20:12:03 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 2727BD1D8AE for ; Thu, 15 Apr 2004 20:11:56 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i3FNC0Sx042432 for ; Thu, 15 Apr 2004 23:12:00 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i3FMr3YX039172 for pgsql-sql@postgresql.org; Thu, 15 Apr 2004 22:53:03 GMT From: CoL X-Newsgroups: comp.databases.postgresql.sql Subject: Re: Update is very slow on a bigger table Date: Fri, 16 Apr 2004 00:53:53 +0200 Organization: Hub.Org Networking Services Lines: 28 Message-ID: References: <200404151507.RAA03297@rodos> <1082063227.5415.217.camel@hklog> Reply-To: col@mportal.hu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040316 X-Accept-Language: en-us, en In-Reply-To: <1082063227.5415.217.camel@hklog> To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/179 X-Sequence-Number: 17554 hi, Dimitar Georgievski wrote, On 4/15/2004 23:07: > hi, > > i'm running an update procedure on a table with approximately 100,000 > records. The problem is the procedure is running endlessly even when the > update is very simple like in the following example: > > update mytable > set client_id = 1 > where mytable_id = 1 > > mytable_id is the primary key of mytable. > > the process under which the update is running reports among the usual > process data "UPDATE waiting". > > I'm using PostgreSQL 7.3.4 on SuSE 9.0. From what I have seen it doesn't > look like that the host computer has problem with the resources. > > Any idea why is this happening? could be, after you send some info: your table schema, your explain analyze result, triggers, or any other info. Any other transaction running again mytable while you try to update? C.