From: | Atri Sharma <atri(dot)jiit(at)gmail(dot)com> |
---|---|
To: | younus <younus(dot)essahli(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to stop a query |
Date: | 2012-07-19 16:07:52 |
Message-ID: | CAOeZVie9jG7rexZBQ09q3ETBKvvhKqgxFvJtEShd-M=mtdG8Ww@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Jul 19, 2012 at 2:47 PM, younus <younus(dot)essahli(at)gmail(dot)com> wrote:
> Hi,
>
> First :
> ps -ef | grep postgres
> and kill -9 (PID of your query)
>
> Sec :
> select procpid, datname, usename, client_addr, current_query from
> pg_stat_activity where current_query!='<IDLE>';
>
> and
>
> SELECT pg_cancel_backend(procpid);
>
>
>
> younus,
>
> --
> View this message in context: http://postgresql.1045698.n5.nabble.com/How-to-stop-a-query-tp1924086p5717227.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
I am not too sure if it is applicable,but have you tried Control-C?
Atri
--
Regards,
Atri
l'apprenant
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2012-07-19 16:21:28 | Re: How to stop a query |
Previous Message | Bob Pawley | 2012-07-19 15:41:20 | Re: Trouble with NEW |