Re: Memory exhausted in AllocSetAlloc(269039) - Mailing list pgsql-sql

From Tom Lane
Subject Re: Memory exhausted in AllocSetAlloc(269039)
Date
Msg-id 6517.1007505797@sss.pgh.pa.us
Whole thread Raw
In response to Memory exhausted in AllocSetAlloc(269039)  ("Jeff Barrett" <jbarrett@familynetwork.com>)
Responses Any patch for delete and insert same row in a function ( transaction )
Re: Memory exhausted in AllocSetAlloc(269039)
List pgsql-sql
"Jeff Barrett" <jbarrett@familynetwork.com> writes:
> I have a function that takes a comma seperated string from another table and
> parses it into another table. When I run it on a string with 130 ids it
> works fine, when I run it on a string with 50,000 ids (each about 6
> characters long) I get the Error: Memory exhausted in AllocSetAlloc(269039).

Seems to run fine in 7.2beta.  Prior versions of plpgsql tended to leak
memory within a function call, but that's been worked on in 7.2.

If you don't care to run beta code, you could possibly work around the
problem in 7.1 by subdividing your function.  Look in the archives for
a prior discussion of this issue (last summer, I think).
        regards, tom lane


pgsql-sql by date:

Previous
From: "Aasmund Midttun Godal"
Date:
Subject: Re: problems with this wiew
Next
From: DI Hasenöhrl
Date:
Subject: Re: make query faster??