Re: Is there a way to kill a connection from the pg_stat_activitly list?

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>, "Jessica Richard" <rjessil(at)yahoo(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>, "Tommy Gildseth" <tommy(dot)gildseth(at)usit(dot)uio(dot)no>
Subject: Re: Is there a way to kill a connection from the pg_stat_activitly list?
Date: 2007-10-15 18:13:23
Message-ID: 47136772.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

>>> On Mon, Oct 15, 2007 at 12:34 PM, in message
<36e682920710151034r2aaef401m5429e460ee0ac209(at)mail(dot)gmail(dot)com>, "Jonah H.
Harris" <jonah(dot)harris(at)gmail(dot)com> wrote:
>
> There used to be a pg_terminate_backend, but it was #ifdef'd out due
> to corruption concerns. Basically, all it did was:
>
> kill -TERM pid
>
> I'm not sure whether anyone has completed the research required to
> know if anything remains corrupted, but it is used occasionally. Best
> to do pg_cancel_backend and then kill -TERM.

Where does pg_ctl kill fit in?

Is TERM the normal signal to use there, too?

Should the pg_ctl docs give some guidelines on the signals?

-Kevin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Darren Reed 2007-10-15 20:16:12 Re: Is my database now too big?
Previous Message Jonah H. Harris 2007-10-15 17:34:50 Re: Is there a way to kill a connection from the pg_stat_activitly list?