Skip site navigation (1) Skip section navigation (2)

Re: Bug #474: Index using problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: joe78(at)freemail(dot)hu, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #474: Index using problem
Date: 2001-10-05 13:48:50
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
pgsql-bugs(at)postgresql(dot)org writes:
>   explain select * from cim where utod_cim_id=0;
>   Seq Scan on cim  (cost=0.00..6555.41 rows=253633 width=118)
>   The query optimizer does not use my index..

How many rows are there where utod_cim_id=0?  The planner guesses that
there are a lot (253633, to be exact) and concludes that using the index
is not profitable for this query.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2001-10-05 13:52:20
Subject: Re: Bug #474: Index using problem
Previous:From: Andreas WernitznigDate: 2001-10-05 09:04:45
Subject: Re: Bug #474: Index using problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group