Re: out of memory woes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: mwrynn(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: out of memory woes
Date: 2006-12-17 01:30:33
Message-ID: 9462.1166319033@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

mwrynn(at)gmail(dot)com writes:
> Tom, below is the information you requested.

Well, the table definitions look ordinary enough, but this is odd:

> SPI Exec: 528474160 total in 69 blocks; 309634880 free (9674592
> chunks); 218839280 used

Something's leaking a lot of memory within a SPI call, which means
either a plpgsql-invoked query or a SPI_execute-or-sibling call
from a C-language function. I can see from the memory dump that
you're using some of both, but no details beyond that. Also,
it seems the actual failure is not coming from CLUSTER at all,
but during an attempt to report a message via RAISE:

> <2006-12-13 14:41:46 EST>ERROR: out of memory
> <2006-12-13 14:41:46 EST>DETAIL: Failed on request of size 20.
> <2006-12-13 14:41:46 EST>CONTEXT: SQL statement "SELECT $1 [ $2 ]"
> PL/pgSQL function "cluster_load_tables" line 31 at raise

So I think you're gonna have to show us the functions you're using ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Angva 2006-12-17 05:48:03 Re: out of memory woes
Previous Message TJ O'Donnell 2006-12-16 22:55:20 Re: Functions on tables