Re: How to stop a query - Mailing list pgsql-general

From Guillaume Lelarge
Subject Re: How to stop a query
Date
Msg-id 200909040753.03010.guillaume@lelarge.info
Whole thread Raw
In response to How to stop a query  (A B <gentosaker@gmail.com>)
List pgsql-general
Le vendredi 4 septembre 2009 à 07:37:20, A B a écrit :
> Hi.
> How can I abort a query that I see is listed in
>
> select * from pg_stat_activity;

You have to do:

  SELECT pg_cancel_backend(pid of the postgres process);


--
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com

pgsql-general by date:

Previous
From: gabriel munteanu
Date:
Subject: custom datatype - rgb color
Next
From: Pavel Stehule
Date:
Subject: Re: How to stop a query