Re: pqlib garbage collection - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: pqlib garbage collection
Date
Msg-id 20120503163253.GA4457@svana.org
Whole thread Raw
In response to Re: pqlib garbage collection  (Alexander Reichstadt <info@apfeltaste.net>)
List 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@svana.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

Attachment

pgsql-general by date:

Previous
From: Samba
Date:
Subject: Issue with rsync based incremental backup : postgres: startup process waiting for 0000000100000001000000D2
Next
From: Darren Duncan
Date:
Subject: Re: Uppercase to lowercase trigger?