Re: Killing long-running queries - Mailing list pgsql-performance

From Devrim GUNDUZ
Subject Re: Killing long-running queries
Date
Msg-id 1146614476.2471.28.camel@laptop.gunduz.org
Whole thread Raw
In response to Killing long-running queries  (Dan Harris <fbsd@drivefaster.net>)
Responses Re: Killing long-running queries
List pgsql-performance
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/



pgsql-performance by date:

Previous
From: Dan Harris
Date:
Subject: Re: Killing long-running queries
Next
From: David Wheeler
Date:
Subject: Re: PL/pgSQL Loop Vs. Batch Update