Re: pqlib garbage collection

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Alexander Reichstadt <info(at)apfeltaste(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pqlib garbage collection
Date: 2012-05-03 16:32:53
Message-ID: 20120503163253.GA4457@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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 <kleptog(at)svana(dot)org> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Darren Duncan 2012-05-03 17:21:27 Re: Uppercase to lowercase trigger?
Previous Message Samba 2012-05-03 15:49:13 Issue with rsync based incremental backup : postgres: startup process waiting for 0000000100000001000000D2