Re: 8.4devel out of memory

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 8.4devel out of memory
Date: 2008-09-05 17:15:19
Message-ID: 48C122D7.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>>> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
>> PortalHeapMemory: 1620992 total in 200 blocks; 5856 free (8
chunks);
> 1615136 used
>> ExecutorState: 2787288448 total in 364 blocks; 328 free (5
chunks);
> 2787288120 used
>
> Ouch. We have created a memory leak someplace, but it's hard to
tell
> where from this info. Can you boil this down into a self-contained
test
> case? I doubt it depends at all on the specific data, so the table
&
> view definitions plus some dummy data would probably be enough to
> reproduce it.

The tables and views aren't that hard; finding a way to generate
enough fake data may be a challenge. (I assume that since it took
over a half hour to run out of memory, the volume of data needs to be
sufficient to get there.)

> Is this a 32-bit or 64-bit build?

32-bit PostgreSQL on 32-bit Linux.

> Also, does the leak still occur if
> you just run the query as-is rather than EXPLAIN ANALYZE it?

I will find out.

-Kevin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-09-05 17:19:35 Re: CVS head has broken make
Previous Message Stefan Kaltenbrunner 2008-09-05 17:13:26 Re: CVS head has broken make