X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2A818D1CAFD for ; Tue, 25 May 2004 00:00:48 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 19456-05 for ; Tue, 25 May 2004 00:00:27 -0300 (ADT) Received: from houston.familyhealth.com.au (fhnet.arach.net.au [203.22.197.21]) by svr1.postgresql.org (Postfix) with ESMTP id D0E42D1CCCF for ; Tue, 25 May 2004 00:00:18 -0300 (ADT) Received: from [192.168.0.40] (work-40.internal [192.168.0.40]) by houston.familyhealth.com.au (8.12.9p1/8.12.9) with ESMTP id i4P2x8WL095333; Tue, 25 May 2004 10:59:08 +0800 (WST) (envelope-from chriskl@familyhealth.com.au) Message-ID: <40B2B801.9020201@familyhealth.com.au> Date: Tue, 25 May 2004 11:05:37 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Michael Ryan S. Puncia" Cc: pgsql-performance@postgresql.org Subject: Re: Server process References: <200405250241.i4P2fMhv001672@mail.census.gov.ph> In-Reply-To: <200405250241.i4P2fMhv001672@mail.census.gov.ph> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/205 X-Sequence-Number: 7036 Read the docs on going SET statement_timeout TO ...; Chris Michael Ryan S. Puncia wrote: > > > Hi, > > > > How can I automatically kill a process in the database (ex a select or > explain) if it exceeds my limit of 2 or 3 mins .. > > For example : I have a query that already running for 3 or 4 mins I > want to kill that process for a reason and return a > > Signal to the user. > > > > Thanks > > Michael >