X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 27151D95AB for ; Thu, 22 Sep 2005 17:48:19 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 09392-03 for ; Thu, 22 Sep 2005 20:48:11 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id C950FD9588 for ; Thu, 22 Sep 2005 17:48:11 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j8MKmAdV015677; Thu, 22 Sep 2005 16:48:10 -0400 (EDT) To: "Kenneth Hutchinson" Cc: pgsql-sql@postgresql.org Subject: Re: Issue with UPDATE statement on v8 In-reply-to: References: Comments: In-reply-to "Kenneth Hutchinson" message dated "Thu, 22 Sep 2005 15:33:51 -0500" Date: Thu, 22 Sep 2005 16:48:10 -0400 Message-ID: <15676.1127422090@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200509/215 X-Sequence-Number: 22762 "Kenneth Hutchinson" writes: > UPDATE t_summary > SET availability = 7 > WHERE oid = 28245084 > When this query is executed (within a function or without) the database > will simply hang. Is it really hung, or just taking an awfully long time? If the backend is consuming no CPU or I/O then I'd agree it's the former; please look into the pg_locks view to see if you can find out what it's waiting for. If it's the latter, maybe you neglected to create an index on OID? > Has anyone else experienced a similar issue? We'd certainly have heard about it if so. But you haven't provided enough info to let anyone reproduce the problem for investigation. regards, tom lane