Re: Pet Peeves? - Mailing list pgsql-general

From Alan Hodgson
Subject Re: Pet Peeves?
Date
Msg-id 200901291055.13908@hal.medialogik.com
Whole thread Raw
In response to Re: Pet Peeves?  (Terry Fielder <terry@ashtonwoodshomes.com>)
List pgsql-general
On Thursday 29 January 2009, Terry Fielder <terry@ashtonwoodshomes.com>
wrote:
> and that ties to:
> 2) If I try to kill 1 postgres pid (e.g. to abort a bad query), the
> whole backend shuts down and rolls back.
> Can we get a way to look at and then kill a specific bad query?

select pg_cancel_backend(pid). Or kill pid from the shell, it only kills off
one backend on 8.x anyway.


--
Current Peeve: The mindset that the Internet is some sort of school for
novice sysadmins and that everyone -not- doing stupid dangerous things
should act like patient teachers with the ones who are. -- Bill Cole, NANAE

pgsql-general by date:

Previous
From: Tommy Gildseth
Date:
Subject: Re: Text search segmentation fault
Next
From: Mark Styles
Date:
Subject: Re: Changing owner of pg_toast tables