Re: [GENERAL] out of memory problem in CVS

2005-07-04 Thread laser
Tom Lane 写道: >Neil Conway <[EMAIL PROTECTED]> writes: > > >>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. >> >> > >It would be usef

Re: [GENERAL] out of memory problem in CVS

2005-07-03 Thread laser
>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 > > > yes, I run VACUUM ANALYZE VERBOSE then run the query, and finally got the o

Re: [GENERAL] out of memory problem in CVS

2005-07-03 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > 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. It would be useful to confirm whether this behavi

Re: [GENERAL] out of memory problem in CVS

2005-07-03 Thread Neil Conway
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 amou

[GENERAL] out of memory problem in CVS

2005-07-03 Thread laser
hi, we are using postgresql to analyze our web log, we got a 6M table, and while doing the query: SELECT url,sum(ct) as ctperkw from ctrraw group by url order by ctperkw desc limit 1000; the table structure is: CREATE TABLE ctrRAW ( cdate date, ip inet, kw varchar(128), prd varchar(6), pos int,