Re: Memory leak in FDW - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Memory leak in FDW
Date
Msg-id 1303841704-sup-5783@alvh.no-ip.org
Whole thread Raw
In response to Memory leak in FDW  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: Memory leak in FDW  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Excerpts from Heikki Linnakangas's message of mar abr 26 15:06:51 -0300 2011:

> I tried to look around for other executor nodes that might 
> have the same problem. I didn't see any obvious leaks, although index 
> scan node seems to call AM's getnext without resetting the memory 
> context in between. That's a pretty well-tested codepath, however, and 
> there hasn't been any complains of leaks with index scans, so there must 
> be something that mitigates it.

Don't we have some rule that functions used in index AMs are supposed to
be leak-free?

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Memory leak in FDW
Next
From: Christopher Browne
Date:
Subject: Re: Proposal - asynchronous functions