Re: [HACKERS] Fix for memory leak in dblink

2010-01-21 Thread Joe Conway
On 01/11/2010 07:43 PM, Takahiro Itagaki wrote: There is a memory leak in dblink when we cancel a query during returning tuples. It could leak a PGresult because memory used by it is not palloc'ed one. I wrote a patch[1] before, but I've badly used global variables to track the resource.

Re: [HACKERS] Fix for memory leak in dblink

2010-01-12 Thread Joe Conway
On 01/11/2010 07:43 PM, Takahiro Itagaki wrote: There is a memory leak in dblink when we cancel a query during returning tuples. It could leak a PGresult because memory used by it is not palloc'ed one. I wrote a patch[1] before, but I've badly used global variables to track the resource.

[HACKERS] Fix for memory leak in dblink

2010-01-11 Thread Takahiro Itagaki
There is a memory leak in dblink when we cancel a query during returning tuples. It could leak a PGresult because memory used by it is not palloc'ed one. I wrote a patch[1] before, but I've badly used global variables to track the resource. The attached is a cleaned up patch rewritten to use a