Re: pg_terminate_backend

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_terminate_backend
Date: 2006-08-18 11:30:16
Message-ID: 44E5A4C8.7060004@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Magnus Hagander wrote:
>>>> Since I have a stuck backend without client again, I'll have to
>>>>
>> kill
>>
>>>> -SIGTERM a backend. Fortunately, I do have console access to
>>>>
>> that
>>
>>>> machine and it's not win32 but a decent OS.
>>>>
>>>>
>>>>
>>> You do know that on Windows you can use pg_ctl to send a pseudo
>>> SIGTERM to a backend, don't you?
>>>
>> The main issue still is that console access id required, on any OS.
>>
>
> Yeah.
> Though for the Windows case only, we could easily enough make it
> possible to run pg_ctl kill remotely, since we use a named pipe. Does
> this seem like a good or bad idea?
>

Not too helpful. How to kill a win32 backend from a linux workstation?
Additionally, NP requires an authenticated RPC connection. I you're not
allowed to access the console, you probably haven't got sufficient
access permissions to NP as well, or you'd need extra policy tweaking or
so. Nightmarish, just to avoid the easy and intuitive way.

Regards,
Andreas

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2006-08-18 11:34:45 Re: Question on SIGFPE in Windows
Previous Message Magnus Hagander 2006-08-18 11:17:55 Re: pg_terminate_backend