it looks like it might choose wrong plan, cos it gets the stats wrong.
Try increasing number of stats to 100.
Btw, what version it is ?
In response to
pgsql-performance by date
|Next:||From: niraj patel||Date: 2009-12-08 13:50:52|
|Subject: Re: Optimizing Bitmap Heap Scan.|
|Previous:||From: niraj patel||Date: 2009-12-08 13:38:57|
|Subject: Optimizing Bitmap Heap Scan.|