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 22:13:42
Message-ID: 11086.1018649622@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:
> Another case of blockhead programmer. I must have been smoking something when I wrote that piece of junk. I collapsed it into a single query with sum(CASE WHEN DAYNUMBER = X THEN HOURS ELSE NULL) for the hours and it works like clockwork.
> Sorry about the noise.

I was wondering if you couldn't simplify it ;-) ... but the question of
why the plan got worse after VACUUM ANALYZE is still interesting. At
least to me.

regards, tom lane

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-04-12 22:29:46 Re: A *short* planner question
Previous Message Ian Harding 2002-04-12 21:57:22 Re: Nested Loop WAS: VACUUM ANALYZE makes things