Re: performance with query

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Alberto Dalmaso" <dalmaso(at)clesius(dot)it>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: performance with query
Date: 2009-06-16 16:00:04
Message-ID: 4A377B340200002500027BFD@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Alberto Dalmaso <dalmaso(at)clesius(dot)it> wrote:

> I attach the explanation of the log query after setting all the
> enable to on. In this condition the query will never finish...

I notice that you many joins in there. If the query can't be
simplified, you probably need to boost the join_collapse_limit and
from_collapse_limit quite a bit. If planning time goes through the
roof in that case, you may need to enable geqo -- this is what it's
intended to help. If you try geqo, you may need to tune it; I'm not
familiar with the knobs for tuning that, so maybe someone else will
jump in if you get to that point.

-Kevin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2009-06-16 16:12:56 Re: performance with query
Previous Message Alberto Dalmaso 2009-06-16 15:54:37 Re: performance with query