Re: 08P01: unexpected EOF on client connection - Mailing list pgsql-general

From Craig Ringer
Subject Re: 08P01: unexpected EOF on client connection
Date
Msg-id 49FA9754.8090100@postnewspapers.com.au
Whole thread Raw
In response to 08P01: unexpected EOF on client connection  (Tomas Vondra <tv@fuzzy.cz>)
Responses Re: 08P01: unexpected EOF on client connection  (Tomas Vondra <tv@fuzzy.cz>)
List pgsql-general
Tomas Vondra wrote:

> $conn = pg_connect(...);
> $res = pg_query("SELECT mime, thumbnail_data FROM images WHERE filename
> = ....");
> $row = pg_fetch_assoc($row);
> header('Content-Type: ' . $row['mime']);
> echo pg_unescape_bytea($row['thumbnail_data']);

PHP?

Try running your script in a PHP debugger (from the command line or, if
your server supports it, while hosted) and see at what point exactly
things go pear shaped. Check your web server error log for any client
library or PHP errors, too.

Even just adding a bunch of logging statements into your script then
looking at your web server error log might help you a little.

--
Craig Ringer

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: could not bind IPv4 socket
Next
From: Dennis Brakhane
Date:
Subject: Re: Understand this error