Re: [PERFORM] Planner really hates nested loops

2005-02-03 Thread Bruce Momjian
Magnus Hagander wrote: > > > I'm hoping someone can shed some light on these results. > > > > Not without a lot more detail on how you *got* the results. > > What exactly did you do to force the various plan choices? > > (I see some ridiculous choices of indexscans, for instance, > > suggesti

Re: [PERFORM] Planner really hates nested loops

2005-02-03 Thread David Brown
Tom Lane wrote: What exactly did you do to force the various plan choices? (I see some ridiculous choices of indexscans, for instance, suggesting improper use of enable_seqscan in some cases.) Except for forcing a hash with indexes (to show that increased use of indexes is not necessarily good),

Re: [PERFORM] Planner really hates nested loops

2005-02-03 Thread Merlin Moncure
Magnus wrote: > > > I'm hoping someone can shed some light on these results. > > > > Not without a lot more detail on how you *got* the results. > > What exactly did you do to force the various plan choices? > > (I see some ridiculous choices of indexscans, for instance, > > suggesting improper use

Re: [PERFORM] Planner really hates nested loops

2005-02-03 Thread Magnus Hagander
> > I'm hoping someone can shed some light on these results. > > Not without a lot more detail on how you *got* the results. > What exactly did you do to force the various plan choices? > (I see some ridiculous choices of indexscans, for instance, > suggesting improper use of enable_seqscan i

Re: [PERFORM] Planner really hates nested loops

2005-02-03 Thread Tom Lane
David Brown <[EMAIL PROTECTED]> writes: > I'm hoping someone can shed some light on these results. Not without a lot more detail on how you *got* the results. What exactly did you do to force the various plan choices? (I see some ridiculous choices of indexscans, for instance, suggesting imprope

[PERFORM] Planner really hates nested loops

2005-02-03 Thread David Brown
I'm hoping someone can shed some light on these results. The 'factor' compares the ratios of cost to actual for different plans. Perhaps nested loops should be given a discount in the planner? The estimates seem to be out by one and a half orders of magnitude. :( == QUERY == SEL