Re: Memory Management in pqlib, Garbage Collection support - Mailing list pgsql-general

From Magnus Hagander
Subject Re: Memory Management in pqlib, Garbage Collection support
Date
Msg-id CABUevEyZw9bGkTJonEa37d2ZbXtWHvucOnpRXYRxa8rOwHuqog@mail.gmail.com
Whole thread Raw
In response to Re: Memory Management in pqlib, Garbage Collection support  (Alexander Reichstadt <lxr@mac.com>)
Responses Re: Memory Management in pqlib, Garbage Collection support
List pgsql-general
On Thu, May 3, 2012 at 9:39 AM, Alexander Reichstadt <lxr@mac.com> wrote:
> Thanks, that's answering my question. In Objective-C as well as many other
> languages there is the feature to turn on Garbage Collection. It's a
> separate thread that scans memory for strong pointers, their source and
> origin and "vacuums" memory so to not have any leaks. Anything unreferenced
> and no longer needed is cleaned up automatically. There are some border
> cases where GC can fail, but for most it works.

libpq is a C library, not an objective-C library. So it clearly
doesn't use an objective-c construct. If you are using some wrapper on
top of libpq it might change things, but libpq itself has no knowledge
of GC at all.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Uppercase to lowercase trigger?
Next
From: Peter Bex
Date:
Subject: Re: Memory Management in pqlib, Garbage Collection support