Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 37DFB476AA4 for ; Thu, 5 Dec 2002 14:27:40 -0500 (EST) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 0C3704766EF for ; Thu, 5 Dec 2002 14:19:29 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id gB5JJL223182; Thu, 5 Dec 2002 14:19:21 -0500 (EST) From: Bruce Momjian Message-Id: <200212051919.gB5JJL223182@candle.pha.pa.us> Subject: Re: how to cancel a query ? In-Reply-To: <200212051350.44846.a.schmitz@cityweb.de> To: a.schmitz@cityweb.de Date: Thu, 5 Dec 2002 14:19:21 -0500 (EST) Cc: Tom Lane , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/55 X-Sequence-Number: 6550 Andreas Schmitz wrote: > On Wednesday 04 December 2002 17:47, Tom Lane wrote: > > Andreas Schmitz writes: > > > ist there any way to cancel a user query as dba ? > > > > Send a SIGINT to the backend process running that query, eg > > > > kill -INT > > > > This has the same effect as a user-requested cancel (eg ^C in psql). > > > > What about an implementation into the command structure ? Libpq has: PQrequestCancel() Where else did you want it? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073