Re: memory leak while using cursors

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: craig(at)webtelecoms(dot)co(dot)za, pgsql-bugs(at)postgresql(dot)org
Subject: Re: memory leak while using cursors
Date: 2001-02-11 17:59:16
Message-ID: 6256.981914356@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)org writes:
> memory leak while using cursors

> DECLARE BOB CURSOR FOR select date_part('epoch', call_time), date_part('hour', call_time), date_part('minute', call_time), date_part('dow', call_time), * from call_jan where call_time >= '2000/12/16 00:00:00.000' and call_time < '2001/01/21 00:00:00.000' FOR READ ONLY;

The date_part function calls will each leak a few bytes of memory that
doesn't get reclaimed till end of query (= cursor close, in this case).
This is fixed for 7.1 but there's no fix for older versions.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Craig Schlenter 2001-02-11 18:30:04 Re: memory leak while using cursors
Previous Message pgsql-bugs 2001-02-11 09:16:20 memory leak while using cursors