﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34870	Memory leak when using psycopg-c with django hstore	David Burke	nobody	"See https://gitlab.com/bufke/psycopg-memory-leak

When running Celery, Django ORM, psycopg-c, and hstore - a memory leak occurs.

Here's the same bug in my real project with a graphic of the memory usage https://gitlab.com/glitchtip/glitchtip-backend/-/issues/265

I hope this is the right place to report, let me know if otherwise. It doesn't happen without the Django ORM.

The easiest workaround is probably to use the pure python psycopg package. I'm unsure if it can be reproduced or not without Celery but Celery seems the easiest way to run the code 1000 times so that the leak is obvious. Another workaround is to use a service/conf option to restart the process periodically.

In my observations of a production server and running the memory_leak project locally - the memory usage goes up forever and never halts. The memory is never released. DEBUG can be True or False and it still occurs."	Bug	closed	Database layer (models, ORM)	4.2	Normal	invalid		Florian Apolloner	Unreviewed	0	0	0	0	0	0
