Re: Killing a session

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Vitaly Belman <vitalyb(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Killing a session
Date: 2004-08-22 00:14:53
Message-ID: 25507.1093133693@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Vitaly Belman <vitalyb(at)gmail(dot)com> writes:
> Is there a way to kill a session in PostrgeSQL? I ran a bad query by
> mistake and I don't want to shut the whole database just to quit using
> the whole CPU.

ISTM what you really want is query cancel, not whole-session kill.
Try "kill -INT <pid-of-backend>".

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim Worke 2004-08-22 02:34:00 Few questions on postgresql (dblink, 2pc, clustering)
Previous Message Gregory S. Williamson 2004-08-21 20:45:24 Re: Killing a session