X-Original-To: pgsql-interfaces@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 54A254758E6 for ; Wed, 9 Apr 2003 02:38:50 -0400 (EDT) Received: from post.webmailer.de (natsmtp00.webmailer.de [192.67.198.74]) by postgresql.org (Postfix) with ESMTP id C45FC474E42 for ; Wed, 9 Apr 2003 02:38:48 -0400 (EDT) Received: from ianb.local (pD951742B.dip.t-dialin.net [217.81.116.43]) by post.webmailer.de (8.12.8/8.8.7) with ESMTP id h396clvx025232; Wed, 9 Apr 2003 08:38:48 +0200 (MEST) Content-Type: text/plain; charset="iso-8859-1" From: Ian Barwick To: pgsql-interfaces@postgresql.org, "P.N.Guru Prasad" Subject: Re: Memory leak!! Date: Wed, 9 Apr 2003 08:38:09 +0200 X-Mailer: KMail [version 1.4] Cc: Tom Lane References: <4468.1049864296@sss.pgh.pa.us> In-Reply-To: <4468.1049864296@sss.pgh.pa.us> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200304090838.09883.barwick@gmx.net> X-Spam-Status: No, hits=-30.0 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, RCVD_IN_NJABL,RCVD_IN_OSIRUSOFT_COM,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/46 X-Sequence-Number: 3985 On Wednesday 09 April 2003 06:58, Tom Lane wrote: > "P.N.Guru Prasad" writes: > > while (1) { > > print "sql executed and returned :", $Dbh->prepare("select user_id fr= om > > 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? Does=20 while (1) { my $sth =3D $Dbh->prepare("select user_id from users limit 1"); print "sql executed and returned :", $sth->execute, "\n";=20 $sth->finish(); } make any difference? If not try asking the dbi-users list, dbi-users@perl.org ( http://lists.perl.org/showlist.cgi?name=3Ddbi-users ) Ian Barwick barwick@gmx.net