From: Devrim GUNDUZ <devrim@commandprompt.com>
To: Dan Harris <fbsd@drivefaster.net>
Cc: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: Killing long-running queries
Date: Wed, 03 May 2006 03:01:16 +0300
Message-ID: <1146614476.2471.28.camel@laptop.gunduz.org> (raw)
In-Reply-To: <4457E918.10007@drivefaster.net>
References: <4457E918.10007@drivefaster.net>
Hi,
On Tue, 2006-05-02 at 17:19 -0600, Dan Harris wrote:
> Is there some way I can just kill a query and not risk breaking
> everything else when I do it?
Use pg_stat_activity view to find the pid of the process (pidproc
column) and send the signal to that process. I think you are now killing
postmaster, which is wrong.
Regards,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: devrim@commandprompt.com, fbsd@drivefaster.net
Subject: Re: Killing long-running queries
In-Reply-To: <1146614476.2471.28.camel@laptop.gunduz.org>
References: <4457E918.10007@drivefaster.net> <1146614476.2471.28.camel@laptop.gunduz.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox