X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E5B50D1B1B6 for ; Wed, 30 Jun 2004 16:33:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 56351-04 for ; Wed, 30 Jun 2004 19:33:05 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 02482D1B18C for ; Wed, 30 Jun 2004 16:33:01 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i5UJX3HK013106; Wed, 30 Jun 2004 15:33:03 -0400 (EDT) To: Litao Wu Cc: pgsql-performance@postgresql.org Subject: Re: reindex and copy - deadlock? In-reply-to: <20040630184518.89025.qmail@web13122.mail.yahoo.com> References: <20040630184518.89025.qmail@web13122.mail.yahoo.com> Comments: In-reply-to Litao Wu message dated "Wed, 30 Jun 2004 11:45:18 -0700" Date: Wed, 30 Jun 2004 15:33:02 -0400 Message-ID: <13105.1088623982@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/330 X-Sequence-Number: 7388 Litao Wu writes: > Since there are multiple databases and > there are 170 postgres processes this morning, > 60 of them are access the problem database, > and 57 of 60 are non-idle. > We only need to gdb those 57 processes, or > we need gdb 60 or 170? Potentially the deadlock could be anywhere :-(. You should definitely not assume it must be one of the processes connected to the problem database, because the buffer pool is cluster-wide. Might be worth setting up a shell script to help. regards, tom lane