pqlib garbage collection

Поиск
Список
Период
Сортировка
Искать

pqlib garbage collection

От:
Alexander Reichstadt <lxr@mac.com>
Дата:
Hi,

regarding pqlib, from what I gather it is with garbage collection supported, yes?


If so, is PQclear a left-over or still mandatory for avoiding leaks?


Thanks
Alex


Re: pqlib garbage collection

От:
Alexander Reichstadt <info@apfeltaste.net>
Дата:
Вложения:
Hi,

since I got no answer so far I searched through the docu again. I searched for GC as well as Garbage, and all garbage refers to is with regard to vacuuming a database. But my question refers to wether or not memory management is with garbage collection supported or not. When I try to link against pqlib, it seems I need to have garbage collection enabled in order for it to link. But the documentation mentions it nowhere.

Please, can someone confirm this or is this the wrong list?

Thanks
Alex

Am 02.05.2012 um 23:32 schrieb Alexander Reichstadt:

> Hi,
> 
> regarding pqlib, from what I gather it is with garbage collection supported, yes?
> 
> 
> If so, is PQclear a left-over or still mandatory for avoiding leaks?
> 
> 
> Thanks
> Alex
> 
> 

Re: pqlib garbage collection

От:
Martijn van Oosterhout <kleptog@svana.org>
Дата:
Вложения:
On Thu, May 03, 2012 at 08:33:06AM +0200, Alexander Reichstadt wrote:
> Hi,
> 
> since I got no answer so far I searched through the docu again. I
> searched for GC as well as Garbage, and all garbage refers to is with
> regard to vacuuming a database.  But my question refers to wether or
> not memory management is with garbage collection supported or not. 
> When I try to link against pqlib, it seems I need to have garbage
> collection enabled in order for it to link.  But the documentation
> mentions it nowhere.

(I'm assuming you're referring to libpq, the C library).

There is no magic garbage collection. You must use PQclear.

Have a nice day,
-- 
Martijn van Oosterhout      http://svana.org/kleptog/
> He who writes carelessly confesses thereby at the very outset that he does
> not attach much importance to his own thoughts.
   -- Arthur Schopenhauer
FAQ