Re: Memory leak!! - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: Memory leak!!
Date
Msg-id 4468.1049864296@sss.pgh.pa.us
Whole thread Raw
In response to Memory leak!!  ("P.N.Guru Prasad" <pnguruji@yahoo.com>)
Responses Re: Memory leak!!
Re: Memory leak!!
List pgsql-interfaces
"P.N.Guru Prasad" <pnguruji@yahoo.com> writes:
> while (1) {
>   print "sql executed and returned :", $Dbh->prepare("select user_id from
> users limit 1")->execute, "\n"; 
> }

I'm not a DBI user, but I'd kinda expect that executing a query would
result in an object holding the results from that query.  Don't you need
to do something to close/delete the result objects you're generating?
        regards, tom lane



pgsql-interfaces by date:

Previous
From: Rudy Lippan
Date:
Subject: Re: [Dbdpg-general] Re: Release of DBD-pg 1.22
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] More protocol discussion: breaking down query processing