Search Postgresql Archives

Re: BitmapAnd on correlated column?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



greigwise <greigwise@xxxxxxxxxxx> writes:
> Granted it cannot skip the condition, but that doesn't mean that it has to
> use that second index.  It's doing a  recheck on the conditions anyway,
> right?

I'm afraid you're out of luck on that for now.  In principle, the
presence of extended stats on the column combination might allow
the planner to figure out that the second IN condition adds little
selectivity.  But I'm not sure how hard it would be, and I am sure
that the extended-stats logic hasn't been built out in that direction
yet.

			regards, tom lane





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux