Re: Optimizer generates bad plans.

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Kris Jurka <jurka(at)ejurka(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Optimizer generates bad plans.
Date: 2002-09-19 22:09:06
Message-ID: 200209192209.g8JM96L03130@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Congratulations. That is the largest plan I have ever seen. ;-)

---------------------------------------------------------------------------

Kris Jurka wrote:
> While adding schema support to the JDBC Driver, I came across a query
> which occasionally generates some spectacularly bad plans. I have
> attached the query and explain analyze outputs against today's cvs head
> for queries that take between 9 and 845941 msec. In the JDBC Driver I
> will specify a reasonable join order using explicit JOINs, but I thought
> someone might be interested in a test case for the optimizer.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-09-19 22:26:01 Re: Beta2 on Friday Morning (Was: Re: Open 7.3 items)
Previous Message Kris Jurka 2002-09-19 22:06:21 Optimizer generates bad plans.