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 91E8F52956 for ; Fri, 10 Jun 2005 12:42:00 -0300 (ADT) 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 63539-03 for ; Fri, 10 Jun 2005 15:41:58 +0000 (GMT) Received: from srv1.alteeve.com (unknown [209.167.86.38]) by svr1.postgresql.org (Postfix) with ESMTP id 164F252953 for ; Fri, 10 Jun 2005 12:41:56 -0300 (ADT) Received: from srv1.alteeve.com (srv1.alteeve.com [127.0.0.1]) by srv1.alteeve.com (8.12.10/8.12.10) with ESMTP id j5AGAJpe029029 for ; Fri, 10 Jun 2005 12:10:19 -0400 Received: (from apache@localhost) by srv1.alteeve.com (8.12.10/8.12.10/Submit) id j5AGAJgB029027; Fri, 10 Jun 2005 12:10:19 -0400 From: linux@alteeve.com X-Authentication-Warning: srv1.alteeve.com: apache set sender to linux@localhost using -f Received: from guelph-ppp113388.sympatico.ca ([216.209.137.1]) (SquirrelMail authenticated user linux) by mail.alteeve.com with HTTP; Fri, 10 Jun 2005 12:10:19 -0400 (EDT) Message-ID: <1825.216.209.137.1.1118419819.squirrel@mail.alteeve.com> Date: Fri, 10 Jun 2005 12:10:19 -0400 (EDT) Subject: Index ot being used To: pgsql-performance@postgresql.org User-Agent: SquirrelMail/1.4.0-1.7.x MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.089 tagged_above=0 required=5 tests=AWL, NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200506/240 X-Sequence-Number: 12877 Hi all, I have an index on a table that doesn't seem to want to be used. I'm hopig someone might be able to help point me in the right direction. My index is (typed, not copied): tle-bu=> \d file_info_7_display_idx; Index "public.file_info_7_display_idx" Column | Type -----------------+---------------------- file_type | character varying(2) file_parent_dir | text file_name | text btree, for table "public.file_info_7" tle-bu=> EXPLAIN ANALYZE SELECT file_type, file_parent_dir, file_name FROM file_info_7; QUERY PLAN ---------------------------------------------------------------------------------------------------------------------- Seq Scan on file_info_7 (cost=0.00..11028.35 rows=294035 width=118) (actual time=0.122..2707.764 rows=294035 loops=1) Total runtime: 3717.862 ms (2 rows) Can anyone see what's wrong? Should I post the table schema? Thanks all! Madison