Re: Out of memory error - Mailing list pgsql-admin

From Tom Lane
Subject Re: Out of memory error
Date
Msg-id 16806.1151083098@sss.pgh.pa.us
Whole thread Raw
In response to Out of memory error  ("Abu Mushayeed" <amushayeed@hotmail.com>)
List pgsql-admin
"Abu Mushayeed" <amushayeed@hotmail.com> writes:
> AFTER A WHILE THE SYSTEM COMES BACK AND SAYS IN THE LOG FILE:

Please turn off your caps lock key :-(

> AggContext: -1501569024 total in 351 blocks; 69904 free (507 chunks);
> -1501638928 used
> DynaHashTable: 302047256 total in 46 blocks; 275720 free (66 chunks);
> 301771536 used

Hm, it's evidently misjudging how much memory will be needed by a
HashAggregate plan, probably because it's underestimating the number
of GROUP BY groups.  Could we see the EXPLAIN output for the query?
What PG version is this exactly?  Have you ANALYZEd the table lately?

            regards, tom lane

pgsql-admin by date:

Previous
From: "Abu Mushayeed"
Date:
Subject: Out of memory error
Next
From: Daniel Xavier de Sousa
Date:
Subject: Buffers to Nest Loop Join