X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C3AFE9DCAEE for ; Thu, 19 Jan 2006 16:42:48 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98067-05 for ; Thu, 19 Jan 2006 16:42:49 -0400 (AST) 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 01E019DCACB for ; Thu, 19 Jan 2006 16:42:45 -0400 (AST) 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 k0JKglQU008801; Thu, 19 Jan 2006 15:42:47 -0500 (EST) To: Rajesh Kumar Mallah cc: Postgres Admin List Subject: Re: killing a query safely In-reply-to: <43CDE33D.3070702@tradeindia.com> References: <43CDE33D.3070702@tradeindia.com> Comments: In-reply-to Rajesh Kumar Mallah message dated "Wed, 18 Jan 2006 12:12:05 +0530" Date: Thu, 19 Jan 2006 15:42:47 -0500 Message-ID: <8800.1137703367@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.093 required=5 tests=[AWL=0.093] X-Spam-Score: 0.093 X-Spam-Level: X-Archive-Number: 200601/228 X-Sequence-Number: 20316 Rajesh Kumar Mallah writes: > many a times the backend are stubborn. A backend is currently > executing a Query , the query usually finishes quickly < 5 secs. > But this query is on for past many minutes. I want to debug why > it is hung if it is hung. Attach to the backend process with gdb and get a stack trace --- that would at least give us some information to work with. regards, tom lane