Re: Wrong plan for subSELECT with GROUP BY

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

 



On Fri, 2006-05-12 at 10:05 -0400, Tom Lane wrote:
> Antal Attila <atesz@xxxxxxxx> writes:
> > If this is a deficiency of the planner, I'd like to suggest this feature 
> > into the planner.
> 
> This really falls into the category of "you've got to be kidding".

Agreed

> There's no way that it'd be reasonable for the planner to expend cycles
> on every query to look for corner cases like this.  

OT: Should we have a way of telling the optimizer how much time and
effort we would like it to go to? Some of the new optimizations and many
yet to come cover smaller and smaller sub-cases. 

At least internally, we could mark the cost-of-optimization as we go, so
we can play with the external interface later.

-- 
  Simon Riggs             
  EnterpriseDB   http://www.enterprisedb.com



[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux