pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rajesh Kumar Mallah <mallah@tradeindia.com>
Cc: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Re: killing a query safely
Date: Thu, 19 Jan 2006 15:42:47 -0500
Message-ID: <8800.1137703367@sss.pgh.pa.us> (raw)
In-Reply-To: <43CDE33D.3070702@tradeindia.com>
References: <43CDE33D.3070702@tradeindia.com>

Rajesh Kumar Mallah <mallah@tradeindia.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



view thread (2+ messages)

Message-ID: <8800.1137703367@sss.pgh.pa.us>
Permalink:  ../8800.1137703367@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8800.1137703367@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mallah@tradeindia.com
  Subject: Re: killing a query safely
  In-Reply-To: <8800.1137703367@sss.pgh.pa.us>
  References: <43CDE33D.3070702@tradeindia.com> <8800.1137703367@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox