Re: out of memory problem in CVS

From: Neil Conway <neilc(at)samurai(dot)com>
To: laser <laser(at)toping(dot)com(dot)cn>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: out of memory problem in CVS
Date: 2005-07-04 04:44:08
Message-ID: 42C8BE98.8@samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

laser wrote:
> SELECT url,sum(ct) as ctperkw from ctrraw group by url order by ctperkw
> desc limit 1000;

> and the query run out of memory, the log file attached.

Have you run ANALYZE recently? You might be running into the well-known
problem that hashed aggregation can consume an arbitrary amount of
memory -- posting the EXPLAIN for the query would confirm that.

-Neil

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-07-04 05:01:18 Re: out of memory problem in CVS
Previous Message Oleg Bartunov 2005-07-04 04:32:00 Re: tsearch2 errors after db move