Re: indexes not being used! - Mailing list pgsql-admin

From Tom Lane
Subject Re: indexes not being used!
Date
Msg-id 13300.1048262550@sss.pgh.pa.us
Whole thread Raw
In response to Re: indexes not being used!  (Joe Conway <mail@joeconway.com>)
List pgsql-admin
Joe Conway <mail@joeconway.com> writes:
> It's hard to tell from what you did post, but if the query returns a
> significant portion of the table then a seq scan is faster, and is
> properly picked by the optimizer. Please post EXPLAIN ANALYZE results.

And do a VACUUM ANALYZE beforehand.  The explain estimates look like
the planner thinks all these tables are tiny.

> (and actually, this thread probably should be on the SQL or the PERFORM
> lists, not this one)

Right.

            regards, tom lane

pgsql-admin by date:

Previous
From: Jodi Kanter
Date:
Subject: Re: indexes not being used!
Next
From: Andreas Schmitz
Date:
Subject: Re: indexes not being used!