Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNwVb-0000fq-Qz for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Mar 2014 03:40:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WNwVb-0005jo-4A for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Mar 2014 03:40:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNvSR-0007vc-Da for pgsql-bugs@postgresql.org; Thu, 13 Mar 2014 02:33:19 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNvSB-0006Tp-VQ for pgsql-bugs@postgresql.org; Thu, 13 Mar 2014 02:33:17 +0000 MIME-Version: 1.0 Subject: BUG #9553: why bitmap index scan startup_cost=0? it's a bug? To: pgsql-bugs@postgresql.org From: digoal@126.com Date: Thu, 13 Mar 2014 02:32:54 +0000 Message-ID: <20140313023254.398.22475@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following bug has been logged on the website: Bug reference: 9553 Logged by: digoal.zhou Email address: digoal@126.com PostgreSQL version: 9.3.3 Operating system: CentOS 6.4 x64 Description: Bitmap index scan need sort the indexenrty by heap_page_id first, then out put the sorted heappageid to next node, but why bitmap index scan node's startup_cost=0? digoal=# explain (analyze,verbose,buffers,costs,timing) select id from t11 where id<10000; QUERY PLAN ------------------------------------------------------------------------------------------------------------------------- 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 (8 rows) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs