Re: How to cancel a query if SIGINT does not work? - Mailing list pgsql-general

From Tom Lane
Subject Re: How to cancel a query if SIGINT does not work?
Date
Msg-id 25688.1124468851@sss.pgh.pa.us
Whole thread Raw
In response to How to cancel a query if SIGINT does not work?  (Adam Witney <awitney@sgul.ac.uk>)
Responses Re: How to cancel a query if SIGINT does not work?  (Adam Witney <awitney@sgul.ac.uk>)
List pgsql-general
Adam Witney <awitney@sgul.ac.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

pgsql-general by date:

Previous
From: Tony Caduto
Date:
Subject: question about plpgsql replace function
Next
From: Tom Lane
Date:
Subject: Re: http://www.postgresql.org/docs/8.0/static/xfunc-sql.html