Re: planner switch from index scan to seq scan? - Mailing list pgsql-general

From Tom Lane
Subject Re: planner switch from index scan to seq scan?
Date
Msg-id 10792.964622330@sss.pgh.pa.us
Whole thread Raw
In response to planner switch from index scan to seq scan?  (Bob Parkinson <rwp@biome.ac.uk>)
List pgsql-general
Bob Parkinson <rwp@biome.ac.uk> writes:
> Is there are simple rule for when the planner switches over from doing an
> index scan to a seq scan?

Sure: when it thinks the seqscan is cheaper ;-)

The cost models on which this is based are not so simple, but you
can study them if you like, see src/backend/optimizer/path/costsize.c

            regards, tom lane

pgsql-general by date:

Previous
From: Ron Peterson
Date:
Subject: Re: free auction project with Postgres
Next
From: Jules Bean
Date:
Subject: Re: Performance for seq. scans