Re: BUG #13792: Weird querry planner behavior

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ydolgikh(at)jerasoft(dot)net
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13792: Weird querry planner behavior
Date: 2015-12-03 20:19:47
Message-ID: 25314.1449173987@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

ydolgikh(at)jerasoft(dot)net writes:
> This query takes around 35 seconds to run when used in the production
> environment ("clients" has about 1 million records). However, if I take out
> ANY join - the query will take only about 300 ms to execute.

Offhand I'd guess that increasing join_collapse_limit (and possibly also
from_collapse_limit) would help.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2015-12-03 21:07:30 Re: BUG #13791: postgresql 9.5 beta2 brin bug (cann't auto update)
Previous Message Tom Lane 2015-12-03 20:11:08 Re: BUG #13790: last row of limit/offset result produces duplicates