Re: BUG #13792: Weird querry planner behavior - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #13792: Weird querry planner behavior
Date
Msg-id 25314.1449173987@sss.pgh.pa.us
Whole thread Raw
In response to BUG #13792: Weird querry planner behavior  (ydolgikh@jerasoft.net)
List pgsql-bugs
ydolgikh@jerasoft.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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #13790: last row of limit/offset result produces duplicates
Next
From: Alvaro Herrera
Date:
Subject: Re: BUG #13791: postgresql 9.5 beta2 brin bug (cann't auto update)