Re: Apparently useless bitmap scans

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Apparently useless bitmap scans
Date: 2007-05-09 15:56:13
Message-ID: 27552.1178726173@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> OK, upgrading to 8.2.4 fixes this odd plan choice. The query does run
> a bit faster too, but the cost estimate has actually gone up!

Yeah, because the former code was making an unrealistically small
estimate of the number of tuples found by BitmapAnd (due to
double-counting the selectivities of redundant indexes), and of course
that means a smaller estimate of the cost to fetch them in the bitmap
heap scan.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Peter Eisentraut 2007-05-09 16:17:44 Re: Nested loops overpriced
Previous Message Peter Eisentraut 2007-05-09 15:26:03 Re: Apparently useless bitmap scans