Re: index skipped in favor of seq scan. - Mailing list pgsql-general

From Tom Lane
Subject Re: index skipped in favor of seq scan.
Date
Msg-id 10756.994800839@sss.pgh.pa.us
Whole thread Raw
In response to RE: index skipped in favor of seq scan.  (ryan.a.roemmich@mail.sprint.com)
List pgsql-general
ryan.a.roemmich@mail.sprint.com writes:
> Does the planner make the choice based on a percentage?

Essentially (actually, it's a nonlinear cost model, so "percentage" is
too simplistic).

It sounds like the only solution available to you until 7.2 comes out
is to use a sledgehammer:

    set enable_seqscan to off;

See the documentation.

            regards, tom lane

pgsql-general by date:

Previous
From: Alexander Turchin
Date:
Subject: Postgresql perl / libpq.so.2 problem - again :(
Next
From: jeff@emojo.com (Jeff Rhys-Jones)
Date:
Subject: Inner Join?