Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group