Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9aWy-0002s4-K3 for pgsql-performance@arkaria.postgresql.org; Sun, 05 Jun 2016 16:04:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b9aWy-0006Bw-2a for pgsql-performance@arkaria.postgresql.org; Sun, 05 Jun 2016 16:04:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b9aWx-0006Bl-HI for pgsql-performance@postgresql.org; Sun, 05 Jun 2016 16:04:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b9aWu-0001TZ-Vk for pgsql-performance@postgresql.org; Sun, 05 Jun 2016 16:04:02 +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 u55G3wG4000970; Sun, 5 Jun 2016 12:03:58 -0400 From: Tom Lane To: Claudio Freire cc: Justin Pryzby , postgres performance list Subject: Re: index fragmentation on insert-only table with non-unique column In-reply-to: References: <20160524173914.GA11880@telsasoft.com> <20160525140034.GB21220@telsasoft.com> <20160603235406.GN23616@telsasoft.com> Comments: In-reply-to Claudio Freire message dated "Fri, 03 Jun 2016 23:05:17 -0300" Date: Sun, 05 Jun 2016 12:03:58 -0400 Message-ID: <969.1465142638@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Claudio Freire writes: > So correlated index scans look extra favourable vs bitmap index scans > because bitmap heap scans consider random page costs sans correlation > effects (even though correlation applies to bitmap heap scans as > well). Really? How? The index ordering has nothing to do with the order in which heap tuples will be visited. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance