X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CFC8E475C3D for ; Mon, 3 Feb 2003 14:05:21 -0500 (EST) Received: from slim.cypresstg.com (firewall.cypresstg.com [65.204.255.101]) by postgresql.org (Postfix) with ESMTP id 8A912475BA1 for ; Mon, 3 Feb 2003 14:05:20 -0500 (EST) Received: from donny (donny.cypresstg.com [192.168.127.72]) by slim.cypresstg.com (8.11.6/8.11.6) with SMTP id h13J2lB20928 for ; Mon, 3 Feb 2003 13:02:47 -0600 From: "Donny Drummonds" To: Subject: Indexes on Large Tables Date: Mon, 3 Feb 2003 13:05:14 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/94 X-Sequence-Number: 7292 I am running a dual athlon 1800 with an gig of ram. I am running postgres 7.2. I have a table that hs 15 million rows. I have a query that has one columns and the select cluase and one column in the where clause with no joining or sub-queries. If I do not index the column from the where clause the query returns the 150,000 rows in 4 and a half minutes. If in do index the column from the where clause using a btree the 150,000 rows return in 11 and a half minutes. Any insight would be greatly appreciated. Donny L. Drummonds