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 61C02D1BA9E for ; Mon, 24 May 2004 23:50:08 -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 14043-08 for ; Mon, 24 May 2004 23:49:52 -0300 (ADT) Received: from www.postgresql.com (www.postgresql.com [200.46.204.209]) by svr1.postgresql.org (Postfix) with ESMTP id B99C0D1B19F for ; Mon, 24 May 2004 23:49:47 -0300 (ADT) Received: from mail.census.gov.ph (mail.census.gov.ph [203.172.28.120]) by www.postgresql.com (Postfix) with ESMTP id E19D5CF542D for ; Mon, 24 May 2004 23:48:27 -0300 (ADT) Received: from notnot (gateway.census.gov.ph [203.172.28.97]) by mail.census.gov.ph (8.12.8/8.12.8) with ESMTP id i4P2fMhv001672 for ; Tue, 25 May 2004 10:41:35 +0800 Message-Id: <200405250241.i4P2fMhv001672@mail.census.gov.ph> From: "Michael Ryan S. Puncia" To: Subject: Server process Date: Tue, 25 May 2004 10:54:46 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0000_01C44246.B6E5BD70" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcRCA6MiS+zrdTRGQlST2lDr1A7t/Q== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-MailScanner: Found to be clean by NSO mail server. X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=HTML_70_80, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200405/204 X-Sequence-Number: 7035 This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C44246.B6E5BD70 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0000_01C44246.B6E5BD70 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

------=_NextPart_000_0000_01C44246.B6E5BD70--