Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id DF69C475862 for ; Fri, 1 Mar 2002 17:12:03 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g21MC4S01852; Fri, 1 Mar 2002 17:12:04 -0500 (EST) To: nickf@ontko.com Cc: "pgsql-admin" Subject: Re: Database is slow, vacuum hangs In-reply-to: References: Comments: In-reply-to "Nick Fankhauser" message dated "Fri, 01 Mar 2002 16:47:48 -0500" Date: Fri, 01 Mar 2002 17:12:04 -0500 Message-ID: <1849.1015020724@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200203/19 X-Sequence-Number: 3554 "Nick Fankhauser" writes: >> If you haven't a clue, try attaching to each process with a debugger and >> printing out the global variable debug_query_string. > How do I do that? Having identified the process PIDs, you can do gdb /path/to/postgres-executable gdb> attach PID gdb> p debug_query_string gdb> bt -- might as well do this while you're here gdb> quit This assumes you have gdb handy. There is a way to do this with adb too, but I don't use it enough to remember. regards, tom lane