pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jonathan Parkin <jonathan.parkin@legendplc.com>
Cc: PostgreSQL Admin Mailing List <pgsql-admin@postgresql.org>
Subject: Re: PostgreSQL 7.4.10 hanging on delete
Date: Tue, 20 Dec 2005 11:37:14 -0500
Message-ID: <300.1135096634@sss.pgh.pa.us> (raw)
In-Reply-To: <1135095712.14411.1260.camel@jparkin.local>
References: <1135095712.14411.1260.camel@jparkin.local>

Jonathan Parkin <jonathan.parkin@legendplc.com> writes:
> I have a reasonably large, live, system-critical database.  A perl
> script on another machine connects and issues a sequence of commands in
> a transaction, the last of which is a delete.  The delete never returns
> a response, and the connection never times out.  The postgres process
> handling the delete is in a scheduled state, but stracing it produces no
> output at all.

Sounds like it's stuck in a tight loop.  Can you attach to the postgres
process with gdb and get a stack trace to find out where the loop is?

If this is a specific row causing the issue, then I'd wonder about
data corruption of some sort.  It might be worth looking at the
table with pg_filedump (from http://sources.redhat.com/rhdb/).

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <300.1135096634@sss.pgh.pa.us>
Permalink:  ../300.1135096634@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/300.1135096634@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, jonathan.parkin@legendplc.com
  Subject: Re: PostgreSQL 7.4.10 hanging on delete
  In-Reply-To: <300.1135096634@sss.pgh.pa.us>
  References: <1135095712.14411.1260.camel@jparkin.local> <300.1135096634@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