But I have many remote connections coming from different machines...it is hard to kill on the OS level outside Postgres on the postgres host...
I am looking for something to kill a Postgres user connection within Postgres...
Some thing like, you find the user connection with select * from pg_stat_activity...then you pick a procpid and kill right there...
Thanks,
Kevin Grittner <Kevin.Grittner@xxxxxxxxxxxx> wrote:
>>> On Mon, Oct 15, 2007 at 12:34 PM, in message
<36e682920710151034r2aaef401m5429e460ee0ac209@xxxxxxxxxxxxxx>, "Jonah H.
Harris"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
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.