Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8DDCA633644 for ; Tue, 17 Aug 2010 19:28:00 -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 34697-02 for ; Tue, 17 Aug 2010 22:27:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.catalyst.net.nz (bertrand.catalyst.net.nz [202.78.240.40]) by mail.postgresql.org (Postfix) with ESMTP id 04532632C5C for ; Tue, 17 Aug 2010 19:27:52 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id 4C79232018 for ; Wed, 18 Aug 2010 10:27:46 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at catalyst.net.nz Received: from mail.catalyst.net.nz ([127.0.0.1]) by localhost (bertrand.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2lrmM4bXzgAa for ; Wed, 18 Aug 2010 10:27:45 +1200 (NZST) Received: from [IPv6:2404:130:0:1000:222:15ff:fe5c:2471] (unknown [IPv6:2404:130:0:1000:222:15ff:fe5c:2471]) (Authenticated sender: mark.kirkwood) by mail.catalyst.net.nz (Postfix) with ESMTPSA id D25CD32013 for ; Wed, 18 Aug 2010 10:27:45 +1200 (NZST) Message-ID: <4C6B0CE1.80301@catalyst.net.nz> Date: Wed, 18 Aug 2010 10:27:45 +1200 From: Mark Kirkwood User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Very poor performance References: <4C6A53DD0200002500034739@gw.wicourts.gov> <4C6A8C44020000250003479C@gw.wicourts.gov> In-Reply-To: <4C6A8C44020000250003479C@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 201008/187 X-Sequence-Number: 40030 On 18/08/10 06:19, Kevin Grittner wrote: > > > Since you haven't set effective_cache_size, you're discouraging some > types of plans which might be worth considering. This should > normally be set to the sum of your shared_buffers setting and > whatever is cached by the OS; try setting effective_cache_size to > 15MB. Speaking of shared_buffers, are you really at the default for > that, too? If so, try setting it to somewhere between 1GB and 4GB. > (I would test at 1, 2, and 4 if possible, since the best setting is > dependent on workload.) > > > Kevin - I'm guessing you meant to suggest setting effective_cache_size to 15GB (not 15MB).... Cheers Mark