Re: PLPythonU & Out of Memory - Importing Query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PLPythonU & Out of Memory - Importing Query
Дата
Msg-id 16566.1131555155@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PLPythonU & Out of Memory - Importing Query  (Jon Clements <jon.clements@trgstrata.co.uk>)
Список pgsql-interfaces
Jon Clements <jon.clements@trgstrata.co.uk> writes:
> I am currently experimenting using plpythonu with postgresql 8.0 for
> Win32. It's basically a quick script that imports data from CSV files,
> but does some quite complicated data lookups and selections. The area
> in which I'm somewhat confunded is memory usage. The process
> successfully runs, but keeps climbing in memory usage relentlessly,
> successfully importing about 200k records, before the memory usage of
> postgres soars to 2gb and of course, shortly after that, grinds to a
> halt with a "Out of Memory" error.

You may have stumbled across a memory leak in plpythonu, but there's
not enough info here for anyone to investigate.  Can you put together
a self-contained test case for people to try?
        regards, tom lane


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Jon Clements
Дата:
Сообщение: PLPythonU & Out of Memory - Importing Query
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: PLPythonU & Out of Memory - Importing Query