Re: Nested Loop WAS: VACUUM ANALYZE makes things worse!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ian Harding" <ianh(at)tpchd(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Nested Loop WAS: VACUUM ANALYZE makes things worse!
Date: 2002-04-12 21:12:47
Message-ID: 10706.1018645967@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Ian Harding" <ianh(at)tpchd(dot)org> writes:
> Doh! I set enable_seqscan = off and things are snappy again.
> Same problem though, how can I fix the query so the optimizer comes to the same conclusion?

I notice that in the "before" state, the planner thinks there will be
some thousands of rows coming out of each join, but in the "after"
state only one row. Which of these is more correct? (If you are
running 7.2, it'd be helpful to show EXPLAIN ANALYZE not just
EXPLAIN results for each case.)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nick Fankhauser 2002-04-12 21:56:03 A *short* planner question
Previous Message Ian Harding 2002-04-12 21:09:15 Re: Nested Loop WAS: VACUUM ANALYZE makes things