Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 785591337B59 for ; Wed, 20 Oct 2010 17:26:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 14772-01 for ; Wed, 20 Oct 2010 20:26:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 133971337B50 for ; Wed, 20 Oct 2010 17:26:18 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o9KKQEU2003616; Wed, 20 Oct 2010 16:26:14 -0400 (EDT) To: Jeff Davis cc: Dimi Paun , pgsql-performance@postgresql.org Subject: Re: What is postmaster doing? In-reply-to: <1287604781.28384.50.camel@jdavis-ux.asterdata.local> References: <1287600255.18151.58.camel@dimi.lattica.com> <1287604781.28384.50.camel@jdavis-ux.asterdata.local> Comments: In-reply-to Jeff Davis message dated "Wed, 20 Oct 2010 12:59:41 -0700" Date: Wed, 20 Oct 2010 16:26:14 -0400 Message-ID: <3615.1287606374@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/321 X-Sequence-Number: 40739 Jeff Davis writes: > On Wed, 2010-10-20 at 14:44 -0400, Dimi Paun wrote: >> 23425 postgres 20 0 22008 10m 10m R 99.9 0.5 21:45.87 postmaster >> >> I'd like to figure out what it is doing. How can I figure out what >> statement causes the problem? > It seems strange that the postmaster is eating 99% cpu. Is there a > chance that it's flooded with connection attempts? It's probably a backend process, not the postmaster --- I suspect the OP is using a version of ps that only tells you the original process name by default. "ps auxww" or "ps -ef" (depending on platform) is likely to be more informative. Looking into pg_stat_activity, even more so. regards, tom lane