Re: Performance problem from migrating between versions!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kaloyan Iliev Iliev <news1(at)faith(dot)digsys(dot)bg>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance problem from migrating between versions!
Date: 2005-01-17 18:07:20
Message-ID: 3957.1105985240@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Kaloyan Iliev Iliev <news1(at)faith(dot)digsys(dot)bg> writes:
> It worked. I have read in the docs what this "enable_hashagg" do, but I
> couldn't understand it. What does it change?

Your original 7.4 query plan has several HashAgg steps in it, which are
doing aggregate/GROUP BY operations. The planner thinks that they will
use only nominal amounts of memory because there are only a few distinct
groups in each case. Evidently that is wrong and at least one of them
is dealing with so many groups as to run out of memory. So the next
question is have you ANALYZEd all of these tables recently?

I wouldn't recommend turning off hashagg as a permanent solution, it
was just a quickie to verify my suspicion of where the memory was going.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Kaloyan Iliev Iliev 2005-01-17 18:15:31 Re: Performance problem from migrating between versions!
Previous Message Kaloyan Iliev Iliev 2005-01-17 18:02:39 Re: Performance problem from migrating between versions!