From: | alain franciosa <alain_franciosa(at)yahoo(dot)fr> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | linux+doQuery infinite loop |
Date: | 2000-10-29 10:05:06 |
Message-ID: | 20001029100506.19072.qmail@web6203.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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", \(at)ary);
$size=\(at)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
From | Date | Subject | |
---|---|---|---|
Next Message | The Hermit Hacker | 2000-10-30 00:01:57 | pgsql-bugs should be live now ... |
Previous Message | Thomas Lockhart | 2000-10-28 06:48:20 | Re: PL/pgSQL functions: NULL parameter trouble |