Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id BF5559FBD72 for ; Wed, 25 Apr 2007 11:52:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 75442-01-5 for ; Wed, 25 Apr 2007 11:52:37 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id 449679FBE10 for ; Wed, 25 Apr 2007 11:52:44 -0300 (ADT) Received: from server3.office.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 653A2143FE9; Wed, 25 Apr 2007 15:52:42 +0100 (BST) Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 4F11B2740EC; Wed, 25 Apr 2007 15:52:42 +0100 (BST) Message-ID: <462F6B3A.7000501@archonet.com> Date: Wed, 25 Apr 2007 15:52:42 +0100 From: Richard Huxton User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Mageshwaran Cc: pgsql-general@postgresql.org Subject: Re: [HACKERS] Kill a Long Running Query References: <462F66C1.4030303@sifycorp.com> In-Reply-To: <462F66C1.4030303@sifycorp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/1050 X-Sequence-Number: 112953 Mageshwaran wrote: > Hi , > Any body tell me how to kill a long running query in postgresql, is > there any statement to kill a query, and also tell me how to log slow > queries to a log file. Oh, and please don't post to several lists at once - this clearly isn't a hacker-related question. -- Richard Huxton Archonet Ltd