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 5BA90D1B435 for ; Tue, 8 Jun 2004 14:52:18 -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 96002-01 for ; Tue, 8 Jun 2004 17:51:54 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 1AD0BD1B4A9 for ; Tue, 8 Jun 2004 14:51:18 -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 i58Hp8xN004465; Tue, 8 Jun 2004 13:51:08 -0400 (EDT) To: Litao Wu Cc: pgsql-performance@postgresql.org Subject: Re: reindex and copy - deadlock? In-reply-to: <20040608172542.90818.qmail@web13123.mail.yahoo.com> References: <20040608172542.90818.qmail@web13123.mail.yahoo.com> Comments: In-reply-to Litao Wu message dated "Tue, 08 Jun 2004 10:25:42 -0700" Date: Tue, 08 Jun 2004 13:51:08 -0400 Message-ID: <4464.1086717068@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/95 X-Sequence-Number: 7153 Litao Wu writes: > I will use gdb next time. What's this right way to > get info as postgres owner? $ gdb /path/to/postgres gdb> attach PID-of-backend-process gdb> bt gdb> quit You might try this for practice on any idle backend; it shouldn't affect the state of the backend, except for freezing it while you issue the commands. If "bt" gives you just a list of numbers and no symbolic information, then it won't be much help; you'll need to rebuild the backend with debugging information so that we can make some sense of the trace. regards, tom lane