Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id ABC01633673 for ; Mon, 11 Jan 2010 18:12:51 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 63339-10 for ; Mon, 11 Jan 2010 22:12:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by mail.postgresql.org (Postfix) with ESMTP id 0CD826332AF for ; Mon, 11 Jan 2010 18:12:41 -0400 (AST) Received: from [192.168.1.3] (pool-96-244-14-10.bltmmd.fios.verizon.net [96.244.14.10]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MKKYA-1NV0jM40PO-001BfV; Mon, 11 Jan 2010 23:12:36 +0100 Message-ID: <4B4BA251.60309@2ndquadrant.com> Date: Mon, 11 Jan 2010 17:12:33 -0500 From: Greg Smith User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Bob Dusek CC: Kevin Grittner , Scott Marlowe , pgsql-performance@postgresql.org Subject: Re: performance config help References: <4B4B177B020000250002E194@gw.wicourts.gov> <4B4B3BF6020000250002E1B1@gw.wicourts.gov> <61039b861001111323g531a5d68q1f59171d926aefef@mail.gmail.com> In-Reply-To: <61039b861001111323g531a5d68q1f59171d926aefef@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+hFKk8CdB2yqmNSR+dvNjHgUmjMn5JuwHbZqI 0LplVWezw1Sd0ODTL3pVGXdTSAusrZ4GZImPWc1Qf+DyQltL/R 37tKoUZx+7eD1u2YdOqPN5UXCZSn5aV X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.589 tagged_above=-10 required=5 tests=BAYES_00=-2.599, FH_DATE_PAST_20XX=3.188 X-Spam-Level: X-Archive-Number: 201001/225 X-Sequence-Number: 37105 Bob Dusek wrote: > > How do I learn more about the actual lock contention in my db? There's a page with a sample query and links to more info at http://wiki.postgresql.org/wiki/Lock_Monitoring One other little thing: when you're running "top", try using "top -c" instead. That should show you exactly what all the postmaster backends are actually doing, which is really handy to sort out issues in this area. -- Greg Smith 2ndQuadrant Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.com