pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: linux@alteeve.com
To: pgsql-performance@postgresql.org
Subject: Index ot being used
Date: Fri, 10 Jun 2005 12:10:19 -0400 (EDT)
Message-ID: <1825.216.209.137.1.1118419819.squirrel@mail.alteeve.com> (raw)

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



view thread (31+ messages)  latest in thread

Message-ID: <1825.216.209.137.1.1118419819.squirrel@mail.alteeve.com>
Permalink:  ../1825.216.209.137.1.1118419819.squirrel@mail.alteeve.com/
Also on:    postgresql.org/message-id/1825.216.209.137.1.1118419819.squirrel@mail.alteeve.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: linux@alteeve.com
  Subject: Re: Index ot being used
  In-Reply-To: <1825.216.209.137.1.1118419819.squirrel@mail.alteeve.com>
  References: <1825.216.209.137.1.1118419819.squirrel@mail.alteeve.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox