Re: BUG #6763: Severe memory leak with arrays and hstore - Mailing list pgsql-bugs

From Craig Ringer
Subject Re: BUG #6763: Severe memory leak with arrays and hstore
Date
Msg-id 5010FD0F.4020400@ringerc.id.au
Whole thread Raw
In response to BUG #6763: Severe memory leak with arrays and hstore  (karavelov@mail.bg)
Responses Re: BUG #6763: Severe memory leak with arrays and hstore  (luben karavelov <karavelov@mail.bg>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #6763: Severe memory leak with arrays and hstore
Next
From: karavelov@mail.bg
Date:
Subject: Re: BUG #6763: Severe memory leak with arrays and hstore