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