Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO6G0-0000dj-8W for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Mar 2014 14:05:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WO6Fz-00058E-Mu for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Mar 2014 14:05:11 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO6Fy-00057C-RL for pgsql-bugs@postgresql.org; Thu, 13 Mar 2014 14:05:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WO6Fw-0001PI-Gf for pgsql-bugs@postgresql.org; Thu, 13 Mar 2014 14:05:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s2DE551X015026; Thu, 13 Mar 2014 10:05:05 -0400 From: Tom Lane To: digoal@126.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9553: why bitmap index scan startup_cost=0? it's a bug? In-reply-to: <20140313023254.398.22475@wrigleys.postgresql.org> References: <20140313023254.398.22475@wrigleys.postgresql.org> Comments: In-reply-to digoal@126.com message dated "Thu, 13 Mar 2014 02:32:54 -0000" Date: Thu, 13 Mar 2014 10:05:05 -0400 Message-ID: <15025.1394719505@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org digoal@126.com writes: > Bitmap Heap Scan on public.t11 (cost=93.95..354.20 rows=10020 width=4) > (actual time=1.447..3.907 rows=9999 loops=1) > Output: id > Recheck Cond: (t11.id < 10000) > Buffers: shared hit=22 > -> Bitmap Index Scan on t11_pkey (cost=0.00..91.44 rows=10020 width=0) > (actual time=1.370..1.370 rows=9999 loops=1) > Index Cond: (t11.id < 10000) > Buffers: shared hit=8 > Total runtime: 4.931 ms We don't bother to store/show the indexscan's startup cost in such cases, since it has no effect whatsoever on subsequent planning: the total cost of the indexscan will go into the parent's startup cost anyway. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs