Re: How to cancel a query if SIGINT does not work?

From: Adam Witney <awitney(at)sgul(dot)ac(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to cancel a query if SIGINT does not work?
Date: 2005-08-19 16:32:42
Message-ID: BF2BC83A.4B20C%awitney@sgul.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 19/8/05 5:27 pm, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Adam Witney <awitney(at)sgul(dot)ac(dot)uk> writes:
>> I have a query that appears to have hung somehow. I have tried sending a
>> SIGINT but this does not cancel it... What's the next step without taking
>> down the whole server?
>
> In theory that should always work. What PG version is this? Can you
> attach to the stuck backend with gdb and get a stack trace?

select version();
version
---------------------------------------------------------------
PostgreSQL 7.4.8 on i686-pc-linux-gnu, compiled by GCC 2.95.4

Am not particularly familiar with gdb, but if you tell me the steps I will
do it and report back

Thanks for your help

Adam

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tony Caduto 2005-08-19 16:34:52 Postgresql Function Language question
Previous Message Tom Lane 2005-08-19 16:30:43 Re: question about plpgsql replace function