Skip site navigation (1) Skip section navigation (2)

Re: odd planner again, pg 9.0.8

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marcus Engene <mengpg2(at)engene(dot)se>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: odd planner again, pg 9.0.8
Date: 2012-07-25 16:39:09
Message-ID: 27536.1343234349@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-performance
Marcus Engene <mengpg2(at)engene(dot)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

In response to

Responses

pgsql-performance by date

Next:From: Andres FreundDate: 2012-07-25 17:01:17
Subject: Re: transactions start time
Previous:From: Pavel StehuleDate: 2012-07-25 16:19:52
Subject: Re: odd planner again, pg 9.0.8

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group