pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: edoardo.innocenti@savinodelbene.com
Cc: pgsql-admin@postgresql.org
Subject: Re: TopMemoryContext - Configuration Mistake?
Date: Tue, 17 Aug 2010 09:44:57 -0400
Message-ID: <9280.1282052697@sss.pgh.pa.us> (raw)
In-Reply-To: <4C6A32F8.1070808@savinodelbene.com>
References: <4C6932DF.90102@savinodelbene.com>
	<5923.1281974354@sss.pgh.pa.us>
	<4C6A32F8.1070808@savinodelbene.com>

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



view thread (5+ messages)  latest in thread

Message-ID: <9280.1282052697@sss.pgh.pa.us>
Permalink:  ../9280.1282052697@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9280.1282052697@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, edoardo.innocenti@savinodelbene.com
  Subject: Re: TopMemoryContext - Configuration Mistake?
  In-Reply-To: <9280.1282052697@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox