Re: Not using index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Crispin Miller <crispin(at)cs(dot)man(dot)ac(dot)uk>
Cc: psql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Not using index
Date: 2001-02-07 15:26:05
Message-ID: 28235.981559565@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Crispin Miller <crispin(at)cs(dot)man(dot)ac(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brice Ruth 2001-02-07 15:26:23 Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?
Previous Message kowal 2001-02-07 15:02:33 Trigger/Function Problem