X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 426DA9DCAB5 for ; Tue, 20 Dec 2005 12:37:30 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13128-01-3 for ; Tue, 20 Dec 2005 12:37:18 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id C695F9DCABF for ; Tue, 20 Dec 2005 12:37:16 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jBKGbEkr000301; Tue, 20 Dec 2005 11:37:15 -0500 (EST) To: Jonathan Parkin cc: PostgreSQL Admin Mailing List Subject: Re: PostgreSQL 7.4.10 hanging on delete In-reply-to: <1135095712.14411.1260.camel@jparkin.local> References: <1135095712.14411.1260.camel@jparkin.local> Comments: In-reply-to Jonathan Parkin message dated "20 Dec 2005 16:21:53 +0000" Date: Tue, 20 Dec 2005 11:37:14 -0500 Message-ID: <300.1135096634@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.023 required=5 tests=[AWL=0.023] X-Spam-Score: 0.023 X-Spam-Level: X-Archive-Number: 200512/226 X-Sequence-Number: 19946 Jonathan Parkin 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