Re: Memory leak!!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "P(dot)N(dot)Guru Prasad" <pnguruji(at)yahoo(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Memory leak!!
Date: 2003-04-09 04:58:16
Message-ID: 4468.1049864296@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

"P.N.Guru Prasad" <pnguruji(at)yahoo(dot)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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2003-04-09 05:05:31 Re: [INTERFACES] More protocol discussion: breaking down query processing
Previous Message Rudy Lippan 2003-04-09 03:26:08 Re: [Dbdpg-general] Re: Release of DBD-pg 1.22