"Steve Howe" <howe(at)carcass(dot)dhs(dot)org> writes:
> It returns "Error: pqReadData() -- read() failed: errno=0 No error
> " as expected when a nil pointer is returned.
"As expected"? That's not what I'd expect, especially not for a
behavior that's dependent on the size of an *outgoing* message.
(Thinks for awhile...) You're not using PQsetnonblocking() are you,
by any chance?
regards, tom lane