Re: query plan and the use of indexes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David Monarchi" <david(dot)e(dot)monarchi(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: query plan and the use of indexes
Date: 2007-06-11 14:35:05
Message-ID: 9746.1181572505@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"David Monarchi" <david(dot)e(dot)monarchi(at)gmail(dot)com> writes:
> I don't understand why the use of a single inequality ( > or < ) causes the
> planner to filter on the condition, but the use of an interval (> and <)
> causes the planner to use the index.

There's something awfully wacko about the rowcount estimates you're
getting. What PG version are you using? I think you may be getting
bit by the recently-fixed bugs in choose_bitmap_and() ...

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Gary Townsend 2007-06-11 15:41:55 Re: PGPLSql Select Into problem.
Previous Message David Monarchi 2007-06-11 14:17:43 query plan and the use of indexes