pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: vimal.gupta@gmail.com
To: pgsql-performance@postgresql.org
Subject: Hanging Query
Date: 8 Jan 2006 09:34:30 -0800
Message-ID: <1136741670.479720.284080@f14g2000cwb.googlegroups.com> (raw)


We have to inserts a records(15000- 20000) into a table which also
contains (15000-20000) records, then after insertion, we have to delete
the records according to a business rule.
Above process is taking place in a transaction and we are using batches
of 128 to insert records.
Everything works fine on QA environment but somehow after inserts,
delete query hangs in production environment. Delete query has some
joins with other table and a self join. There is no exception as we
have done enough exception handling. It simply hangs with no trace in
application logs.

When I do "ps aux" , I see
postgres  5294 41.3  2.4 270120 38092 pts/4  R    10:41  52:56
postgres: nuuser nm 127.0.0.1 DELETE

Postgres 7.3.4 on Linux..

Thanks for any help..

Vimal




view thread (2+ messages)  latest in thread

Message-ID: <1136741670.479720.284080@f14g2000cwb.googlegroups.com>
Permalink:  ../1136741670.479720.284080@f14g2000cwb.googlegroups.com/
Also on:    postgresql.org/message-id/1136741670.479720.284080@f14g2000cwb.googlegroups.com

 · 

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-performance@postgresql.org
  Cc: vimal.gupta@gmail.com
  Subject: Re: Hanging Query
  In-Reply-To: <1136741670.479720.284080@f14g2000cwb.googlegroups.com>
  References: <1136741670.479720.284080@f14g2000cwb.googlegroups.com>

* 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