Re: out of memory woes - Mailing list pgsql-general

From Tom Lane
Subject Re: out of memory woes
Date
Msg-id 9462.1166319033@sss.pgh.pa.us
Whole thread Raw
In response to Re: out of memory woes  (mwrynn@gmail.com)
Responses Re: out of memory woes
List pgsql-general
mwrynn@gmail.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

pgsql-general by date:

Previous
From: TJ O'Donnell
Date:
Subject: Re: Functions on tables
Next
From: "Yonatan Ben-Nes"
Date:
Subject: PDOStatement:closeCursor