X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B4C5156471 for ; Wed, 9 Mar 2005 04:55:26 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 35415-04 for ; Wed, 9 Mar 2005 04:55:23 +0000 (GMT) Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by svr1.postgresql.org (Postfix) with ESMTP id 6E2195644B for ; Wed, 9 Mar 2005 04:55:22 +0000 (GMT) Received: by flake.decibel.org (Postfix, from userid 1001) id F3A331C8B3; Wed, 9 Mar 2005 04:55:19 +0000 (GMT) Date: Tue, 8 Mar 2005 22:55:19 -0600 From: "Jim C. Nasby" To: Rick Schumeyer , pgsql-performance@postgresql.org Subject: Re: index scan on =, but not < ? Message-ID: <20050309045519.GA509@decibel.org> References: <001f01c5240d$a920c8c0$0200a8c0@dell8200> <20050309043821.GA1569@wolff.to> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050309043821.GA1569@wolff.to> X-Operating-System: FreeBSD 4.11-RELEASE i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.053 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/158 X-Sequence-Number: 10863 On Tue, Mar 08, 2005 at 10:38:21PM -0600, Bruno Wolff III wrote: > Not exactly. If the number of rows to be examined is on the order of 5% > of the table, an index scan will probably be slower than a sequential > scan. The visibility issue makes index scans slower in the case that Shouldn't that be 50%? -- Jim C. Nasby, Database Consultant decibel@decibel.org Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?"