Re: killing a query safely

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rajesh Kumar Mallah <mallah(at)tradeindia(dot)com>
Cc: Postgres Admin List <pgsql-admin(at)postgresql(dot)org>
Subject: Re: killing a query safely
Date: 2006-01-19 20:42:47
Message-ID: 8800.1137703367@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Rajesh Kumar Mallah <mallah(at)tradeindia(dot)com> writes:
> many a times the backend are stubborn. A backend is currently
> executing a Query , the query usually finishes quickly < 5 secs.
> But this query is on for past many minutes. I want to debug why
> it is hung if it is hung.

Attach to the backend process with gdb and get a stack trace ---
that would at least give us some information to work with.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Bruce Momjian 2006-01-19 20:53:23 Re: WAL log archive frequency
Previous Message Scott Marlowe 2006-01-19 20:30:42 Re: Question