Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 6932118BA230 for ; Wed, 18 Apr 2012 21:45:01 -0300 (ADT) Received: from smtp.01.com ([199.36.142.181]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SKfUX-0006MU-Uv for pgsql-performance@postgresql.org; Thu, 19 Apr 2012 00:45:00 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 1E65C3F614D for ; Wed, 18 Apr 2012 19:44:44 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18icDHffPb4n for ; Wed, 18 Apr 2012 19:44:44 -0500 (CDT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id F1A7A3F6154 for ; Wed, 18 Apr 2012 19:44:43 -0500 (CDT) Received: from Sidney-Stratton.local (70-36-143-92.dsl.dynamic.sonic.net [70.36.143.92]) by smtp-out-1.01.com (Postfix) with ESMTPSA id B13FF3F614D for ; Wed, 18 Apr 2012 19:44:43 -0500 (CDT) Message-ID: <4F8F5FFA.6020800@agliodbs.com> Date: Wed, 18 Apr 2012 17:44:42 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: bad planning with 75% effective_cache_size References: In-Reply-To: X-Enigmail-Version: 1.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/133 X-Sequence-Number: 46779 On 4/17/12 2:49 AM, Istvan Endredy wrote: > Hi, > > thanks for the suggestion, but it didn't help. We have tried it earlier. > > 7500ms > http://explain.depesz.com/s/ctn This plan seems very odd -- doing individual index lookups on 2.8m rows is not standard planner behavior. Can you confirm that all of your other query cost parameters are the defaults? -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com