From: Tom Lane <tgl@sss.pgh.pa.us>
To: digoal@126.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9553: why bitmap index scan startup_cost=0? it's a bug?
Date: Thu, 13 Mar 2014 10:05:05 -0400
Message-ID: <15025.1394719505@sss.pgh.pa.us> (raw)
In-Reply-To: <20140313023254.398.22475@wrigleys.postgresql.org>
References: <20140313023254.398.22475@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, digoal@126.com
Subject: Re: BUG #9553: why bitmap index scan startup_cost=0? it's a bug?
In-Reply-To: <15025.1394719505@sss.pgh.pa.us>
References: <20140313023254.398.22475@wrigleys.postgresql.org> <15025.1394719505@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox