X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3D7A09FA5B5 for ; Mon, 5 Jun 2006 16:43:11 -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 69204-09 for ; Mon, 5 Jun 2006 16:42:59 -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 A76BB9FA30C for ; Mon, 5 Jun 2006 16:42:59 -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 1FnL2P-0006sb-5V for pgsql-performance@postgresql.org; Mon, 05 Jun 2006 15:46:57 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 8C38E4172; Mon, 5 Jun 2006 15:42:52 -0400 (EDT) Date: Mon, 5 Jun 2006 15:42:52 -0400 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: Some queries starting to hang Message-ID: <20060605194252.GA7071@phlogiston.dyndns.org> References: <1149534308.3583.56.camel@bg002441.pro-unlimited.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1149534308.3583.56.camel@bg002441.pro-unlimited.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/40 X-Sequence-Number: 19397 On Mon, Jun 05, 2006 at 12:05:08PM -0700, Chris Beecroft wrote: > Our problem is that about a week and a half ago we started to get some > queries that would (seemingly) never return (e.g., normally run in a > couple minutes, but after 2.5 hours, they were still running, the > process pushing the processor up to 99.9% active). Are there any locks preventing the query from completing? I can't recall how you check in 7.3, but if nothing else, you can check with ps for something WAITING. A -- Andrew Sullivan | ajs@crankycanuck.ca Unfortunately reformatting the Internet is a little more painful than reformatting your hard drive when it gets out of whack. --Scott Morris