From: | Keary Suska <hierophant(at)pcisys(dot)net> |
---|---|
To: | PostgreSQL <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Python interface memory leak? |
Date: | 2001-10-16 20:47:13 |
Message-ID: | B7F1F8F1.4B1B%hierophant@pcisys.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Are you disposing the results of each select call? Not being familiar with
Python, as well as not knowing which interface for Python you are using, or
the code used to invoke the selects, I can only surmise that the result data
from each select is being stored in RAM and never garbage collected. At
least that could be responsible for significant memory jumps. For small
jumps, it could simply be the accumulation of multiple objects. So 1) you
may have to explicitly destroy result data and 2) you may need to ensure
that you are re-using the same object.
Without more info, any guess is as good as another.
Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"
> From: Stephen Robert Norris <srn(at)commsecure(dot)com(dot)au>
> Date: 16 Oct 2001 22:00:35 +1000
> To: pgsql-general(at)postgresql(dot)org
> Subject: [GENERAL] Python interface memory leak?
>
> Does the python interface leak memory? We are seeing the process grow
> with basically every select. Any suggestions on what's going on? There
> are no cycles, and a trivial program (basically a loop around a select)
> demonstrates the problem.
>
> This is 7.1.2 on RH7.[01].
>
> Stephen
>
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2001-10-16 21:01:27 | Re: JDBC - Related Question. |
Previous Message | Mihai Gheorghiu | 2001-10-16 19:55:18 | User permissions for functions |