Received: from maia.hub.org (maia-2.hub.org [200.46.204.251])
by mail.postgresql.org (Postfix) with ESMTP id 69FA5634286
for ;
Tue, 17 Aug 2010 12:12:47 -0300 (ADT)
Received: from mail.postgresql.org ([200.46.204.86])
by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia,
port 10024) with ESMTP id 70235-02-5
for ;
Tue, 17 Aug 2010 15:12:39 +0000 (UTC)
X-Greylist: from auto-whitelisted by SQLgrey-1.7.6
Received: from mail.sdb.it (mail.sdb.it [212.141.11.2])
by mail.postgresql.org (Postfix) with ESMTP id 85C4E63438F
for ; Tue, 17 Aug 2010 12:11:40 -0300 (ADT)
Received: by mail.sdb.it (Postfix, from userid 500)
id C91BC8226; Tue, 17 Aug 2010 17:11:38 +0200 (CEST)
Received: from geronimo.sdb.it (geronimo.sdb.it [10.101.1.20])
by mail.sdb.it (Postfix) with ESMTP id C40C8821C;
Tue, 17 Aug 2010 17:11:38 +0200 (CEST)
Received: from mailtech.sdb.it (sdbit-srv01.sdb.it [10.118.122.250])
by geronimo.sdb.it (Postfix) with ESMTP id 713253808A2;
Tue, 17 Aug 2010 17:11:15 +0200 (CEST)
Received: from [127.0.0.1] (darkstar.sdb.it [10.118.101.90])
by mailtech.sdb.it (Postfix) with ESMTP id A89C758ABC;
Tue, 17 Aug 2010 17:11:38 +0200 (CEST)
Message-ID: <4C6AA65E.1020502@savinodelbene.com>
Date: Tue, 17 Aug 2010 17:10:22 +0200
From: Edoardo Innocenti
Reply-To: edoardo.innocenti@savinodelbene.com
Organization: SDB Information Technology S.r.l.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; it;
rv:1.9.1.11) Gecko/20100711 Lightning/1.0b1 Thunderbird/3.0.6
MIME-Version: 1.0
To: Tom Lane
Cc: pgsql-admin@postgresql.org
Subject: Re: TopMemoryContext - Configuration Mistake?
References: <4C6932DF.90102@savinodelbene.com> <5923.1281974354@sss.pgh.pa.us>
<4C6A32F8.1070808@savinodelbene.com>
<9280.1282052697@sss.pgh.pa.us>
In-Reply-To: <9280.1282052697@sss.pgh.pa.us>
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
X-Private-Material: Please read notice
X-Virus-Scanned: Maia Mailguard 1.0.1
X-Spam-Status: No, hits=0.723 tagged_above=-10 required=5
tests=BAYES_20=-0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.723
X-Spam-Level:
X-Archive-Number: 201008/131
X-Sequence-Number: 35380
Il 17/08/2010 15:44, Tom Lane ha scritto:
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.
We have pg_autovacuum enable and we launch vacuumdb -z every weeks.
These tables do not grow fast, 300 record max. Is it possible that
the statistics are the cause?
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
--
Edoardo Innocenti
Infrastructure Coordinator
SDB Information Technology
Phone: +39.055.3811222
Fax: +39.055.5201411
disclaimer-sdb
Utilizziamo i dati personali che la riguardano esclusivamente per nostre finalità amministrative e contabili, anche quando li comunichiamo a terzi. Informazioni dettagliate, anche in ordine al Suo diritto di accesso e agli altri Suoi diritti, sono riportate alla pagina http://www.savinodelbene.com/news/privacy.html
Se avete ricevuto questo messaggio per errore Vi preghiamo di ritornarlo al mittente eliminandolo assieme agli eventuali allegati, ai sensi art. 616 codice penale http://www.savinodelbene.com/codice_penale_616.html
L'Azienda non si assume alcuna responsabilità giuridica qualora pervengano da questo indirizzo messaggi estranei all'attivitą lavorativa o contrari a norme.