Re: Optimizer generates bad plans.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Kris Jurka <jurka(at)ejurka(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Optimizer generates bad plans.
Date: 2002-09-19 23:45:09
Message-ID: 10856.1032479109@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Neil Conway <neilc(at)samurai(dot)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?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-09-20 02:02:47 Re: Proposal for resolving casting issues
Previous Message Kris Jurka 2002-09-19 22:52:03 Re: Optimizer generates bad plans.