linux+doQuery infinite loop - Mailing list pgsql-bugs

From alain franciosa
Subject linux+doQuery infinite loop
Date
Msg-id 20001029100506.19072.qmail@web6203.mail.yahoo.com
Whole thread Raw
List pgsql-bugs
Hi,
I've got the following bug under linux platform (red
at linux release 6) :
The doQuery function make an infinite loop an crash my
server (consuming all the memory availabled) .
The code is the following :
conn = Pg::connectdb("user=x dbname=x");
( PGRES_CONNECTION_OK eq $conn->status )   and print "Pg::connectdb ........... ok\n"   or  die  "Pg::connectdb
...........not ok: ", 
$conn->errorMessage;

Pg::doQuery($conn, "select * from name", \@ary);


$size=\@ary;
for($i=0;$i<$size;$i++) { print "$ary[$i][0] $ary[$i][1] $ary[$i][2]<BR>\n";
}
PQfinish($conn);

Note that this bug does not happen under solaris
platform
Any help would be appreciated

Thanks



___________________________________________________________
Do You Yahoo!? -- Pour dialoguer en direct avec vos amis,
Yahoo! Messenger : http://fr.messenger.yahoo.com



pgsql-bugs by date:

Previous
From: daryl lamble
Date:
Subject: RE : Postgres
Next
From: The Hermit Hacker
Date:
Subject: pgsql-bugs should be live now ...