Re: ERROR: Memory exhausted in AllocSetAlloc(188) - Mailing list pgsql-general

From Tom Lane
Subject Re: ERROR: Memory exhausted in AllocSetAlloc(188)
Date
Msg-id 12205.1054005302@sss.pgh.pa.us
Whole thread Raw
In response to Re: ERROR: Memory exhausted in AllocSetAlloc(188)  (Tilo Schwarz <mail@tilo-schwarz.de>)
List pgsql-general
Tilo Schwarz <mail@tilo-schwarz.de> writes:
> I have a problem (7.3.1 on linux) with a query eating all my memory.
> http://www.tilo-schwarz.de/OutOfMem.txt

You didn't tell us much about the functions involved in these views,
but I suspect the problem has to do with the fact that you're passing
whole-row references (foo.*) to the functions.  The mechanism for
handling whole-row references is horrid --- it leaks memory that isn't
reclaimed till end of query.  We need to redesign it someday.  In the
meantime, try passing just the columns you need, explicitly.

            regards, tom lane

pgsql-general by date:

Previous
From: Jean-Christian Imbeault
Date:
Subject: Re: Slashdot: SAP and MySQL Join Forces
Next
From: Justin Clift
Date:
Subject: [Fwd: PostgreSQL to index MEDLINE]