Re: out of memory problem in CVS - Mailing list pgsql-general

From Neil Conway
Subject Re: out of memory problem in CVS
Date
Msg-id 42C8BE98.8@samurai.com
Whole thread Raw
In response to out of memory problem in CVS  (laser <laser@toping.com.cn>)
Responses Re: out of memory problem in CVS
Re: out of memory problem in CVS
List 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

pgsql-general by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: tsearch2 errors after db move
Next
From: Tom Lane
Date:
Subject: Re: out of memory problem in CVS