pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Silvio Brandani <silvio.brandani@tech.sdb.it>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-admin@postgresql.org
Subject: Re: out of memory error
Date: Thu, 05 Aug 2010 11:18:41 -0400
Message-ID: <2097.1281021521@sss.pgh.pa.us> (raw)
In-Reply-To: <4C5ACAD1.8030703@tech.sdb.it>
References: <4C5AB62E.7020201@tech.sdb.it>
	<4C5A7E630200002500034238@gw.wicourts.gov>
	<931.1281017723@sss.pgh.pa.us>
	<4C5ACAD1.8030703@tech.sdb.it>

Silvio Brandani <silvio.brandani@tech.sdb.it> writes:
>> "Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
>>> What query?

[ query with aggregates and GROUP BY ]

Does EXPLAIN show that it's trying to use a hash aggregation plan?
If so, try turning off enable_hashagg.  I think the hash table might
be ballooning far past the number of entries the planner expected.
Do you have an idea how many groups there should be in the query
result?

			regards, tom lane



view thread (42+ messages)  latest in thread

Message-ID: <2097.1281021521@sss.pgh.pa.us>
Permalink:  ../2097.1281021521@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2097.1281021521@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, silvio.brandani@tech.sdb.it, Kevin.Grittner@wicourts.gov
  Subject: Re: out of memory error
  In-Reply-To: <2097.1281021521@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