Re: odd planner again, pg 9.0.8 - Mailing list pgsql-performance

From Tom Lane
Subject Re: odd planner again, pg 9.0.8
Date
Msg-id 27536.1343234349@sss.pgh.pa.us
Whole thread Raw
In response to odd planner again, pg 9.0.8  (Marcus Engene <mengpg2@engene.se>)
Responses Re: odd planner again, pg 9.0.8  (Marcus Engene <mengpg2@engene.se>)
List pgsql-performance
Marcus Engene <mengpg2@engene.se> writes:
> Lacking index hints I have a bit of a problem with a slow select.

I don't think you need index hints.  What you probably do need is to
increase join_collapse_limit and/or from_collapse_limit to deal with
this complex query as a whole.

> There are several selects looking similar to this in our application
> that suddenly jumped from a handfull of ms to many seconds.

Perhaps you had those settings adjusted properly and somebody turned
them off again?

            regards, tom lane

pgsql-performance by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: odd planner again, pg 9.0.8
Next
From: Andres Freund
Date:
Subject: Re: transactions start time