Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id D1B8E9FBD86 for ; Wed, 25 Apr 2007 11:54:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 09832-02-3 for ; Wed, 25 Apr 2007 11:53:57 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by postgresql.org (Postfix) with ESMTP id F19C39FBDEB for ; Wed, 25 Apr 2007 11:53:53 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c24so93059ana for ; Wed, 25 Apr 2007 07:53:51 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=pHEGzR66/1s3lZi5JLNfll4f93SNdxFfa4k9XZWd8UtTViohRMK94AgGuw+PkP7dHHHOJ+CB6hv+fEFVDTZvbTR1bW6VWRHFxSktUroiQV+3V32lyPplUQtH2tYhD3mltDig+dAQ/igSYEv5OHm8PEYljlb4hvio5dLjUokgTVM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=CKcjZEq9fSQea65Gd9J6fYMPQf93JILXlOVKutTFWKQkr88FMLPeYySVdLurNuqS28Z2/jZmLFPzn6WMumDdvjGC/2EOaUkahJ8WqzP4g8135IL0RTdcRjxonuIxmSLzlTHHTOpR1pWRuUcJCO2n3BEDVTmOt3HyPKD1Dx3PmSY= Received: by 10.100.173.19 with SMTP id v19mr242064ane.1177512830781; Wed, 25 Apr 2007 07:53:50 -0700 (PDT) Received: by 10.100.144.18 with HTTP; Wed, 25 Apr 2007 07:53:50 -0700 (PDT) Message-ID: Date: Wed, 25 Apr 2007 09:53:50 -0500 From: "Aaron Bono" To: Mageshwaran Subject: Re: Kill a Long Running Query Cc: pgsql-general@postgresql.org, pgsql-admin@postgresql.org, Postgres In-Reply-To: <462F66C1.4030303@sifycorp.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_229599_30005839.1177512830651" References: <462F66C1.4030303@sifycorp.com> X-Google-Sender-Auth: b80bac4565645a49 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/228 X-Sequence-Number: 25292 ------=_Part_229599_30005839.1177512830651 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/25/07, 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. > > Regards > J Mageshwaran See if this helps: http://archives.postgresql.org/pgsql-hackers-win32/2004-12/msg00039.php -- ================================================================== Aaron Bono Aranya Software Technologies, Inc. http://www.aranya.com http://codeelixir.com ================================================================== ------=_Part_229599_30005839.1177512830651 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/25/07, Mageshwaran <j_mageshwaran@sifycorp.com> 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.

Regards
J Mageshwaran




--
==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
   http://codeelixir.com
================================================================== ------=_Part_229599_30005839.1177512830651--