Re: pg_cancel_backend() does not work with buzz queries

From: Richard Huxton <dev(at)archonet(dot)com>
To: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_cancel_backend() does not work with buzz queries
Date: 2007-10-03 09:10:52
Message-ID: 47035C9C.7050507@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-ru-general

Sergey Konoplev wrote:
> I'm sorry I mean not HUP but KILL

Hmm...

>> datname | usename | procpid | current_query | waiting |
>> query_start
>> -----------+------------------+---------+-----------------+---------+-------------------------------
>> transport | belostotskaya_la | 20530 | select * from c | f |
>> 2007-10-02 05:05:28.908687+04

>> transport=# select pg_catalog.pg_cancel_backend(20530);
>> pg_cancel_backend
>> -------------------
>> t

>> datname | usename | procpid | current_query | waiting |
>> query_start
>> -----------+------------------+---------+-----------------+---------+-------------------------------
>> transport | belostotskaya_la | 20530 | select * from c | f |
>> 2007-10-02 05:05:28.908687+04

1. Is it always the same query?
2. Does the client still think it's connected?
3. Is that query using up CPU, or just idling?
4. Anything odd in pg_locks for the problem pid?

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2007-10-03 10:18:32 Re: pg_cancel_backend() does not work with buzz queries
Previous Message Sergey Konoplev 2007-10-03 08:44:16 Re: pg_cancel_backend() does not work with buzz queries

Browse pgsql-ru-general by date

  From Date Subject
Next Message Nick Gazaloff 2007-10-03 09:12:23 Re: pg_cancel_backend() не снимает зависшие транзакции
Previous Message Sergey Konoplev 2007-10-03 08:44:56 Re: pg_cancel_backend() не снимает зависшие транзакции