Re: BUG #6763: Severe memory leak with arrays and hstore

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: BUG #6763: Severe memory leak with arrays and hstore
Дата
Msg-id 5010FD0F.4020400@ringerc.id.au
обсуждение исходный текст
Ответ на BUG #6763: Severe memory leak with arrays and hstore  (karavelov@mail.bg)
Ответы Re: BUG #6763: Severe memory leak with arrays and hstore  (luben karavelov <karavelov@mail.bg>)
Список pgsql-bugs
On 07/26/2012 09:32 AM, karavelov@mail.bg wrote:
> Finally I have managed to migrate it in batches of 100-200k user ids and
> disconnecting after each query in order to free the backend and leaked
> memory.
If you do it in batches, but you do NOT disconnect and reconnect, does
the backend continue to grow?

What's the output of:

SELECT count(sub.user_id), to_char(AVG(sub.n_prefs), '99999.99') FROM (
SELECT user_id, count(name) AS n_prefs FROM old_prefs GROUP BY user_id)
AS sub;

and

SELECT pg_size_pretty(pg_total_relation_size('old_prefs'));

?

--
Craig Ringer

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #6763: Severe memory leak with arrays and hstore
Следующее
От: karavelov@mail.bg
Дата:
Сообщение: Re: BUG #6763: Severe memory leak with arrays and hstore