Re: Function to kill backend - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Function to kill backend
Date
Msg-id 406DE63A.1090605@dunslane.net
Whole thread Raw
In response to Function to kill backend  ("Magnus Hagander" <mha@sollentuna.net>)
Responses Re: Function to kill backend  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Function to kill backend  (Neil Conway <neilc@samurai.com>)
List pgsql-hackers
Magnus Hagander wrote:

>Hi!
>
>When debugging on win32, I've created myself a little function that I
>feel should be added to the "backend proper". While it adds a lot of
>vlaue on win32, I think it adds quite a bit of value on non-win32
>platforms as well...
>
>The function is pg_kill_backend(<pid>,<signal>). superuser-only, of
>course. Which simply sends a signal to the specified backend -
>querycancel, terminate, etc.
>  
>

If' we're going to have this shouldn't it be a proper command? And maybe 
an internal shutdown command to go with it?

cheers

andrew





pgsql-hackers by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Function to kill backend
Next
From: Tom Lane
Date:
Subject: Re: Function to kill backend