Thread: Perl Interface(Pg.pm) -- How to free $result

Perl Interface(Pg.pm) -- How to free $result

From
secret
Date:
    After doing a $result = $conn->exec("...") and using the $result how
do I go about freeing the memory it takes up?  The documentation said
something about PQfree or somesuch, but then labeled it OLD STYLE ONLY,
so what is the new style?


Re: [INTERFACES] Perl Interface(Pg.pm) -- How to free $result

From
"Brett W. McCoy"
Date:
On Mon, 8 Mar 1999, secret wrote:

>     After doing a $result = $conn->exec("...") and using the $result how
> do I go about freeing the memory it takes up?  The documentation said
> something about PQfree or somesuch, but then labeled it OLD STYLE ONLY,
> so what is the new style?

It's handled automatically by the object-oriented 'new style' of the
module.

Brett W. McCoy
                                        http://www.lan2wan.com/~bmccoy/
-----------------------------------------------------------------------
Out of the mouths of babes does often come cereal.

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GAT dpu s:-- a C++++ UL++++$ P+ L+++ E W++ N+ o K- w--- O@ M@ !V PS+++
PE Y+ PGP- t++ 5- X+ R+@ tv b+++ DI+++ D+ G++ e>++ h+(---) r++ y++++
------END GEEK CODE BLOCK------