Re: Optimizer generates bad plans. - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Optimizer generates bad plans.
Date
Msg-id 200210031920.g93JK7u00612@candle.pha.pa.us
Whole thread Raw
In response to Re: Optimizer generates bad plans.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Neil Conway <neilc@samurai.com> writes:
> > Interesting. The inconsistency you're seeing is a result of GEQO. I
> > would have hoped that it would have produced a better quality plan
> > more often, but apparently not. On my system, the regular query
> > optimizer handily beats GEQO for this query: it produces more
> > efficienty query plans 100% of the time and takes less time to do so.
> > For *this* query at least, raising geqo_threshold would be a good
> > idea, but that may not be true universally.
> 
> The current GEQO threshold was set some time ago; since then, the
> regular optimizer has been improved while the GEQO code hasn't been
> touched.  It might well be time to ratchet up the threshold.
> 
> Anyone care to do some additional experiments?

Added to TODO:
* Check GUC geqo_threshold to see if it is still accurate                    
--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: AIX compilation problems (was Re: Proposal ...)
Next
From: Lamar Owen
Date:
Subject: Re: Trigger regression test output