Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 269879FBB74 for ; Wed, 11 Jul 2007 17:02:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 29181-10 for ; Wed, 11 Jul 2007 17:01:59 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.239]) by postgresql.org (Postfix) with ESMTP id C74AB9FB8BA for ; Wed, 11 Jul 2007 17:02:01 -0300 (ADT) Received: by nz-out-0506.google.com with SMTP id l8so1298444nzf for ; Wed, 11 Jul 2007 13:01:59 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WE+ik8uQ0FYB3JWiODHn1/xiI8jgZ0r6uI/9pjVj1hcwDkm/dhaK6M2DHW+s61Pwg8Ay7bARz/38RtAbtZcSWkdFpNXH8PEh9r2lmHimhGRlZwfISz2lK1WVhY+vCH7bpcF81G7o7BWC44QCMABTaXjhSZGfkvxn4XTTbnFy4/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ao8JE9mOboaZ4Lb9t4G+bhJ65Uwswp8JU2HoI9vVD09VlvkWdKhLxnayjdsAYohYjPo6AoZm+HowlKOhP++gsQXjarqDY47PiFg6yXuOXi3o0pPOv7ZSGuXfjJ8lyI/TsK5sPIzPqd+H6Dg+yGI6ZkN+0FwUcOr0F9r4/T8FYjI= Received: by 10.141.209.7 with SMTP id l7mr1739810rvq.1184184118810; Wed, 11 Jul 2007 13:01:58 -0700 (PDT) Received: by 10.140.252.21 with HTTP; Wed, 11 Jul 2007 13:01:58 -0700 (PDT) Message-ID: Date: Wed, 11 Jul 2007 16:01:58 -0400 From: "Alex Deucher" To: "A. Kretschmer" Subject: Re: bitmap-index-scan slower than normal index scan Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070711183638.GA30872@KanotixBox> <20070711193158.GA28352@a-kretschmer.de> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/119 X-Sequence-Number: 25803 On 7/11/07, Alex Deucher wrote: > On 7/11/07, A. Kretschmer wrote: > > am Wed, dem 11.07.2007, um 14:52:01 -0400 mailte Alex Deucher folgendes: > > > >Okay, i got a really different plan, but i expected _NOT_ a > > > >performance-boost like this. I expected the opposite. > > > > > > > > > > > >It's not a really problem, i just played with this. But i'm confused > > > >about this... > > > > > > > > > > your results are getting cached. try two queries in a row with the same > > > plan. > > > > Thanks for the response, but I've done this, no difference. > > > > try bumping up the default stats target on the table in question and > see if that helps the planner choose a better plan. > and be sure to run analyze again. Alex