X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CEC3D475AF8 for ; Thu, 6 Feb 2003 14:33:40 -0500 (EST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 1A22A475A8D for ; Thu, 6 Feb 2003 14:33:37 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 6A2DED611; Thu, 6 Feb 2003 11:33:37 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 5FA615C02; Thu, 6 Feb 2003 11:33:37 -0800 (PST) Date: Thu, 6 Feb 2003 11:33:37 -0800 (PST) From: Stephan Szabo To: Donny Drummonds Cc: Subject: Re: Indexes on Large Tables In-Reply-To: Message-ID: <20030206113257.H40575-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/102 X-Sequence-Number: 7300 On Mon, 3 Feb 2003, Donny Drummonds wrote: > 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. Hmm, have you analyzed recently? In any case, the table definition, query and explain analyze outpute would be useful to see.