Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 383604758E7 for ; Fri, 1 Mar 2002 16:16:06 -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 g21LG0S01396; Fri, 1 Mar 2002 16:16:00 -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 15:44:39 -0500" Date: Fri, 01 Mar 2002 16:16:00 -0500 Message-ID: <1393.1015017360@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200203/17 X-Sequence-Number: 3552 "Nick Fankhauser" writes: > The deletes were slow, but worked, so the tables are all empty now. I > started the vacuum and let it run for 4 hours while I did other work & it > never came back. Is the vacuum actually running (accumulating any CPU time)? Or is it just waiting on a lock held by one of those other guys? > During this time, I noticed that two postmaster processes > were constantly running- each taking up almost exactly half of the CPU time. > There was no disk activity. After I canceled the vacuum, the two postmaster > processes remained and continued to use all of the CPU time. (they're still > there.) And what are they doing --- who started them, what query was sent to 'em, etc? If you haven't a clue, try attaching to each process with a debugger and printing out the global variable debug_query_string. regards, tom lane