Re: [GENERAL] Weird explain output

2013-02-04 Thread wd
Thanks for your reply. On Mon, Feb 4, 2013 at 3:48 PM, Tom Lane wrote: > You're worrying about the wrong thing entirely. The right thing to be > worrying about is why are some of those row estimates off by four orders > of magnitude, and what you can do to fix that. The planner will never > d

Re: [GENERAL] Weird explain output

2013-02-03 Thread Tom Lane
wd writes: > I have a long SQL with many join, the explain analyse output like >-> Hash Left Join (cost=197749705.15..5320438982425.18 > rows=5245599776015 width=7542) (actual time=674.634..2645.293 rows=4568 > loops=1) > Hash Cond: (p.id = ps.partner_id) > -> Merge Join

[GENERAL] Weird explain output

2013-02-03 Thread wd
I have a long SQL with many join, the explain analyse output like -> Hash Left Join (cost=197749705.15..5320438982425.18 rows=5245599776015 width=7542) (actual time=674.634..2645.293 rows=4568 loops=1) Hash Cond: (p.id = ps.partner_id) -> Merge Join (cost=197747693.55..788