Operating System - HP-UX
1834381 Members
1845 Online
110066 Solutions
New Discussion

postgres bug in hpwsapache

 
Stefan Beelen
Occasional Contributor

postgres bug in hpwsapache

We think we found a bug in the PgSQL interface of HPWS Apache32 B.2.0.52.00.
The synchronous pg_query() sometimes returns
following error:
Warning: pg_query(): Query failed: could not receive data from server: Invalid argument.

When we use following asynchronous code:

$conn = pg_connect(".....");
pg_send_query($conn, "SELECT ....");
while (pg_connection_busy($conn))
{
usleep(100000);
}
$res = pg_get_result($conn);

all goes well.

It seems that the error occurs when the database returns very fast with a moderate to large amount of data.

We installed on HPUX 11.23 IPF machines following software:
HPWS Apache32 B.2.0.52.00
ixPostgresql A.03.00-7.4.2.001
Both are the latest version downloaded from the HP websites.

I post this problem here because I don't know any other place where I can post bugs like these.