Re: Yet another question about not use on indexes - Mailing list pgsql-performance

From Richard Huxton
Subject Re: Yet another question about not use on indexes
Date
Msg-id 200305111508.34714.dev@archonet.com
Whole thread Raw
In response to Yet another question about not use on indexes  (Xevi Serrats <tomcatbsd@yahoo.es>)
List pgsql-performance
On Sunday 11 May 2003 2:16 pm, Xevi Serrats wrote:
> Hi,
>
> I have created a table whit some indexes. I analize
> the query of this table and never use index.

> pfc=# \d document
>                                   Table
> "public.document"
>    Column   |           Type           |
>       Modifiers
> ------------+--------------------------+-----------------------------------
>----------------- codi       | integer                  | not null
> default nextval('seq_document'::text)
>  nom        | character varying(32)    | not null
etc...

> pfc=# explain select * from document where codi=2;
>                         QUERY PLAN
> ----------------------------------------------------------
>  Seq Scan on document  (cost=0.00..1.19 rows=1
> width=120)
>    Filter: (codi = 2)
> (2 rows)

1. Have you done a VACUUM ANALYSE?
2. How many rows are in this table?
3. Can you post the output of EXPLAIN ANALYSE SELECT... - that actually runs
the query.

--
  Richard Huxton


pgsql-performance by date:

Previous
From: Xevi Serrats
Date:
Subject: Yet another question about not use on indexes
Next
From: Tom Lane
Date:
Subject: Re: Yet another question about not use on indexes