From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Tilo Schwarz <mail(at)tilo-schwarz(dot)de> |
Cc: | Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: ERROR: Memory exhausted in AllocSetAlloc(188) |
Date: | 2003-05-27 03:15:02 |
Message-ID: | 12205.1054005302@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Tilo Schwarz <mail(at)tilo-schwarz(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Justin Clift | 2003-05-27 04:35:58 | [Fwd: PostgreSQL to index MEDLINE] |
Previous Message | Jean-Christian Imbeault | 2003-05-27 02:39:56 | Re: Slashdot: SAP and MySQL Join Forces |
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2003-05-27 03:22:54 | Re: array functions - request for opinions (was Re: [PATCHES] |
Previous Message | Tom Lane | 2003-05-27 02:53:34 | Re: array functions - request for opinions (was Re: [PATCHES] array |