X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 86C21D1B4EB; Thu, 18 Sep 2003 19:09:03 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 28170-03; Thu, 18 Sep 2003 16:08:54 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 0706AD1B503; Thu, 18 Sep 2003 16:08:52 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h8IJ8miP001470; Thu, 18 Sep 2003 15:08:48 -0400 (EDT) To: "Paulo Scardine" Cc: pgsql-hackers@postgresql.org, pgsql-odbc@postgresql.org, pgsql-interfaces@postgresql.org Subject: Re: [HACKERS] Killing the backend to cancel a long waiting query In-reply-to: <007701c37e0f$4fc1b550$6101a8c0@Paulo> References: <2054.1063808792@sss.pgh.pa.us> <3F69A6DE.1050002@bigfoot.com> <007701c37e0f$4fc1b550$6101a8c0@Paulo> Comments: In-reply-to "Paulo Scardine" message dated "Thu, 18 Sep 2003 15:04:32 -0300" Date: Thu, 18 Sep 2003 15:08:48 -0400 Message-ID: <1469.1063912128@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/43 X-Sequence-Number: 4461 "Paulo Scardine" writes: > So I hacked a small pggetpid and pgkillpid C functions, and now I can learn > the backend's PID, start the query in a new thread, and kill the backend > using another connection if I want. I trust when you say "kill", you really mean "send SIGINT" ... regards, tom lane