Re: Memory exhausted in AllocSetAlloc(269039)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Memory exhausted in AllocSetAlloc(269039)
Дата
Msg-id 6517.1007505797@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Memory exhausted in AllocSetAlloc(269039)  ("Jeff Barrett" <jbarrett@familynetwork.com>)
Ответы Any patch for delete and insert same row in a function ( transaction )  (MindTerm <mindterm@yahoo.com>)
Re: Memory exhausted in AllocSetAlloc(269039)  (Roberto Mello <rmello@cc.usu.edu>)
Список 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 по дате отправления:

Предыдущее
От: "Aasmund Midttun Godal"
Дата:
Сообщение: Re: problems with this wiew
Следующее
От: DI Hasenöhrl
Дата:
Сообщение: Re: make query faster??