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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adam Witney <awitney(at)sgul(dot)ac(dot)uk>
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:27:31
Message-ID: 25688.1124468851@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-08-19 16:29:27 Re: http://www.postgresql.org/docs/8.0/static/xfunc-sql.html
Previous Message Peter Fein 2005-08-19 16:12:57 Re: plpython function with dictionary as function argument?