Re: Not using index - Mailing list pgsql-general

From Tom Lane
Subject Re: Not using index
Date
Msg-id 28235.981559565@sss.pgh.pa.us
Whole thread Raw
In response to Not using index  (Crispin Miller <crispin@cs.man.ac.uk>)
List pgsql-general
Crispin Miller <crispin@cs.man.ac.uk> writes:
> Then I've run VACUUM ANALYZE. The query planner still wants to do a
> sequential scan on the database. Any idea where I'm going wrong?

Not providing enough detail to let anyone help you ;-)

Let's see the table schema (pg_dump -s -t table is a useful way to
collect the info quickly and accurately), the attempted query, and
the EXPLAIN output for it.  Also, if you do
    SET enable_seqscan TO OFF;
how does that change the EXPLAIN result?

            regards, tom lane

pgsql-general by date:

Previous
From: Crispin Miller
Date:
Subject: Not using index
Next
From: Brice Ruth
Date:
Subject: Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?