Postgres eats up memory when using cursors

Поиск
Список
Период
Сортировка
От Denis Perchine
Тема Postgres eats up memory when using cursors
Дата
Msg-id 01030113332704.00608@dyp.perchine.com
обсуждение исходный текст
Ответы Re: Postgres eats up memory when using cursors
Список pgsql-general
Hello,

I would like to bring subj to your attention again.
The problem is the following:
I need to have cursor opened for a long time.
I declare a cursor on the table of approx. 1 million rows.
And start fetching data by 1000 rows at each fetch.
Data processing can take quite a long time (3-4 days)
Theoretically postgres process should remain the same in size.
But it grows... In the end of 3rd day it becames 256Mb large!!!!
And this is REAL problem.

Also I would like to mention that this problem was raised by other person
also.

I would like to hear any comments on this issue.

--
Sincerely Yours,
Denis Perchine

----------------------------------
E-Mail: dyp@perchine.com
HomePage: http://www.perchine.com/dyp/
FidoNet: 2:5000/120.5
----------------------------------

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

Предыдущее
От: Aristide Aragon
Дата:
Сообщение: Re: Re: Help with pq++
Следующее
От: Mario Weilguni
Дата:
Сообщение: Re: pg_dumpall -> fails