Re: TopMemoryContext - Configuration Mistake? - Mailing list pgsql-admin

From Tom Lane
Subject Re: TopMemoryContext - Configuration Mistake?
Date
Msg-id 9280.1282052697@sss.pgh.pa.us
Whole thread Raw
In response to Re: TopMemoryContext - Configuration Mistake?  (Edoardo Innocenti <edoardo.innocenti@savinodelbene.com>)
Responses Re: TopMemoryContext - Configuration Mistake?  (Edoardo Innocenti <edoardo.innocenti@savinodelbene.com>)
List pgsql-admin
Edoardo Innocenti <edoardo.innocenti@savinodelbene.com> writes:
> Query Plan:<br>
> "HashAggregate (cost=4910.06..4910.19 rows=1 width=659)"

Hm ... the planner seems to think that this is a small query that isn't
going to take long, which is a bit at odds with the fact that you're
running out of memory.  I suspect that these rowcount estimates are
far too low, which would suggest that you need to make sure your
ANALYZE statistics are up-to-date, and perhaps raise the statistics
targets.  Try to get the plan's estimated rowcounts to approximate
reality.

BTW, you might want to think about turning off your mail program's
HTML option.  What other people are seeing looks like this:
http://archives.postgresql.org/pgsql-admin/2010-08/msg00126.php
and it's not pretty.

            regards, tom lane

pgsql-admin by date:

Previous
From: Edoardo Innocenti
Date:
Subject: Re: TopMemoryContext - Configuration Mistake?
Next
From: "Gnanakumar"
Date:
Subject: Re: SQL statements not printed in pgpool log